From cbeaf845a74b600fc90d1455d215f52097b416eb Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 18 Mar 2010 09:34:33 +0000 Subject: [PATCH] MGR: If user selects Event Log from menu when Event Log window already open, just bring it to the front instead of opening another window svn path=/trunk/boinc/; revision=20939 --- checkin_notes | 11 +++++++++++ clientgui/BOINCGUIApp.cpp | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 920b89c15c..246194f9a1 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1991,3 +1991,14 @@ Rom 16 Mar 2010 boinc_win.h win_build/ *.vcproc + + +Charlie 18 Mar 2010 + - MGR: If user selects Event Log from menu when Event Log window already open, + just bring it to the front instead of opening another window. + - lib: Fix crash bugs. + + clientgui/ + BOINCGUIApp.cpp + lib/ + gui_rpc_client_ops.cpp diff --git a/clientgui/BOINCGUIApp.cpp b/clientgui/BOINCGUIApp.cpp index ffca8e4bd0..5e9412274a 100644 --- a/clientgui/BOINCGUIApp.cpp +++ b/clientgui/BOINCGUIApp.cpp @@ -807,7 +807,12 @@ int CBOINCGUIApp::StartBOINCDefaultScreensaverTest() { bool CBOINCGUIApp::DisplayEventLog() { bool rc = false; - m_pEventLog = new CDlgEventLog(); + if (m_pEventLog) { + m_pEventLog->Raise(); + } else { + m_pEventLog = new CDlgEventLog(); + } + if (m_pEventLog) { rc = m_pEventLog->Show(); if (m_pFrame) {