[GME-commit] GMESRC/GME/Gme GMEApp.cpp,1.141,1.142
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Thu Dec 7 21:51:24 CST 2006
Update of /project/gme-repository/GMESRC/GME/Gme
In directory escher:/tmp/cvs-serv16044
Modified Files:
GMEApp.cpp
Log Message:
Order of initialization swapped (1st do ObjectInspector, 2nd do Browser), thus the properties of the initally selected rootfolder are shown at once.
CVS User: Zoltan Molnar, ISIS (zolmol)
Index: GMEApp.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Gme/GMEApp.cpp,v
retrieving revision 1.141
retrieving revision 1.142
diff -C2 -d -r1.141 -r1.142
*** GMEApp.cpp 7 Dec 2006 19:07:40 -0000 1.141
--- GMEApp.cpp 7 Dec 2006 21:51:22 -0000 1.142
***************
*** 869,879 ****
((CMainFrame*)m_pMainWnd)->setMgaProj();
- // notify browser
- ASSERT( CGMEBrowser::theInstance != NULL );
- CGMEBrowser::theInstance->SetProject(mgaProject);
-
// notify object inspector
ASSERT(CGMEObjectInspector::theInstance!=NULL);
CGMEObjectInspector::theInstance->SetProject(mgaProject);
// notify search control
--- 869,881 ----
((CMainFrame*)m_pMainWnd)->setMgaProj();
// notify object inspector
ASSERT(CGMEObjectInspector::theInstance!=NULL);
CGMEObjectInspector::theInstance->SetProject(mgaProject);
+
+ // by swapping the order of SetProject (first ObjectInspector, then Browser),
+ // the user will see the properties of the initally selected project at once
+ // notify browser
+ ASSERT( CGMEBrowser::theInstance != NULL );
+ CGMEBrowser::theInstance->SetProject(mgaProject);
// notify search control
More information about the GME-commit
mailing list