MGR: if Event Log was open, show it _behind_ main window when "opening" Manager after it was hidden

svn path=/trunk/boinc/; revision=22055
This commit is contained in:
Charlie Fenton 2010-07-24 00:54:10 +00:00
parent 0ab3ef3cee
commit fe7ac49c42
3 changed files with 13 additions and 2 deletions

View File

@ -5595,3 +5595,11 @@ Rom 23 July 2010
DlgEventLog.cpp
MainDocument.cpp, .h
NoticeListCtrl.cpp
Charlie 23 Jul 2010
- MGR: I had it backwards: if Event Log was open, show it behind main
window when "opening" Manager after it was hidden.
clientgui/
BOINCBaseFrame.cpp
BOINCGUIApp.cpp

View File

@ -793,12 +793,13 @@ bool CBOINCBaseFrame::Show(bool bShow) {
}
}
retval = wxFrame::Show(bShow);
CDlgEventLog* eventLog = wxGetApp().GetEventLog();
if (eventLog) {
eventLog->Show(bShow);
}
retval = wxFrame::Show(bShow);
wxFrame::Raise();
return retval;
}

View File

@ -461,7 +461,9 @@ bool CBOINCGUIApp::OnInit() {
if(bOpenEventLog) {
DisplayEventLog(m_bGUIVisible);
m_pFrame->Raise();
}
return true;
}