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
This commit is contained in:
Charlie Fenton 2010-03-18 09:34:33 +00:00
parent 84ceac6913
commit cbeaf845a7
2 changed files with 17 additions and 1 deletions

View File

@ -1991,3 +1991,14 @@ Rom 16 Mar 2010
boinc_win.h boinc_win.h
win_build/ win_build/
*.vcproc *.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

View File

@ -807,7 +807,12 @@ int CBOINCGUIApp::StartBOINCDefaultScreensaverTest() {
bool CBOINCGUIApp::DisplayEventLog() { bool CBOINCGUIApp::DisplayEventLog() {
bool rc = false; bool rc = false;
m_pEventLog = new CDlgEventLog(); if (m_pEventLog) {
m_pEventLog->Raise();
} else {
m_pEventLog = new CDlgEventLog();
}
if (m_pEventLog) { if (m_pEventLog) {
rc = m_pEventLog->Show(); rc = m_pEventLog->Show();
if (m_pFrame) { if (m_pFrame) {