[commit] r1717 - trunk/GME/Gme
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Thu Dec 1 12:37:06 CST 2011
Author: ksmyth
Date: Thu Dec 1 12:37:05 2011
New Revision: 1717
Log:
Fix GME-380: Mutli-user menu items are available even if no project is open
Modified:
trunk/GME/Gme/MainFrm.cpp
Modified: trunk/GME/Gme/MainFrm.cpp
==============================================================================
--- trunk/GME/Gme/MainFrm.cpp Thu Dec 1 12:05:07 2011 (r1716)
+++ trunk/GME/Gme/MainFrm.cpp Thu Dec 1 12:37:05 2011 (r1717)
@@ -1202,12 +1202,12 @@
void CMainFrame::OnUpdateViewMultiUserActiveUsers(CCmdUI* pCmdUI)
{
- pCmdUI->Enable( !CGMEDoc::theInstance || !theApp.isMgaProj()); // always TRUE (also when no project is open) except when mga_proj is open
+ pCmdUI->Enable(theApp.mgaProject && (!CGMEDoc::theInstance || !theApp.isMgaProj())); // always TRUE (also when no project is open) except when mga_proj is open
}
void CMainFrame::OnUpdateViewMultiUserSubversion(CCmdUI* pCmdUI)
{
- pCmdUI->Enable( !CGMEDoc::theInstance || !theApp.isMgaProj()); // always TRUE (also when no project is open) except when mga_proj is open
+ pCmdUI->Enable(theApp.mgaProject && (!CGMEDoc::theInstance || !theApp.isMgaProj())); // always TRUE (also when no project is open) except when mga_proj is open
}
void CMainFrame::OnViewClearConsole()
More information about the gme-commit
mailing list