MGR: On Mac, ensure any modal dialog remains in front when Manager is activated

svn path=/trunk/boinc/; revision=25240
This commit is contained in:
Charlie Fenton 2012-02-11 08:44:48 +00:00
parent 4e1ff26060
commit 9da40e98b3
2 changed files with 15 additions and 0 deletions

View File

@ -1600,3 +1600,11 @@ Charlie 10 Feb 2012
client/ client/
coproc_detect.cpp coproc_detect.cpp
Charlie 11 Feb 2012
- MGR: Fix a bug which pushed modal dialogs (Attach Wizard) to rear when
Manager process was brought to front from behind (Mac only.) This
bug was probably introduced in Z-order tweak of 23 Jan 2012.
clientgui/
BOINCGUIApp.cpp

View File

@ -794,6 +794,13 @@ void CBOINCGUIApp::OnActivateApp(wxActivateEvent& event) {
m_pEventLog->Raise(); m_pEventLog->Raise();
} }
m_pFrame->Raise(); m_pFrame->Raise();
#ifdef __WXMAC__
// Make sure any modal dialog (such as Attach Wizard) ends up in front.
if (IsModalDialogDisplayed()) {
wxDynamicCast(wxWindow::FindWindowById(ID_ANYDIALOG), wxDialog)->Raise();
}
#endif
} }
event.Skip(); event.Skip();
} }