Adjust comments

svn path=/trunk/boinc/; revision=16362
This commit is contained in:
Charlie Fenton 2008-10-30 09:33:48 +00:00
parent 5a78a07094
commit 9b07ed4fe4
1 changed files with 4 additions and 3 deletions

View File

@ -778,11 +778,12 @@ bool CBOINCGUIApp::SetActiveGUI(int iGUISelection, bool bShowWindow) {
// Store the new frame for future use
m_pFrame = pNewFrame;
// Hide the old one if it exists
// Hide the old one if it exists. We must do this
// after updating m_pFrame to prevent Mac OSX from
// hiding the application
if (pOldFrame) pOldFrame->Hide();
// Show the new frame if needed, and prevent Mac OSX from
// hiding the application
// Show the new frame if needed
if (pNewFrame && bShowWindow) pNewFrame->Show();
// Delete the old one if it exists