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=20940
This commit is contained in:
Charlie Fenton 2010-03-18 10:41:25 +00:00
parent cbeaf845a7
commit bfeafea68c
2 changed files with 5 additions and 7 deletions

View File

@ -1992,7 +1992,6 @@ Rom 16 Mar 2010
win_build/ win_build/
*.vcproc *.vcproc
Charlie 18 Mar 2010 Charlie 18 Mar 2010
- MGR: If user selects Event Log from menu when Event Log window already open, - 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. just bring it to the front instead of opening another window.

View File

@ -811,12 +811,11 @@ bool CBOINCGUIApp::DisplayEventLog() {
m_pEventLog->Raise(); m_pEventLog->Raise();
} else { } else {
m_pEventLog = new CDlgEventLog(); m_pEventLog = new CDlgEventLog();
} if (m_pEventLog) {
rc = m_pEventLog->Show();
if (m_pEventLog) { if (m_pFrame) {
rc = m_pEventLog->Show(); m_pFrame->UpdateRefreshTimerInterval();
if (m_pFrame) { }
m_pFrame->UpdateRefreshTimerInterval();
} }
} }