PAL9491 - "View"->"Display mode"->"Shading" causes crash

This commit is contained in:
asl 2005-09-30 07:00:00 +00:00
parent 76e11e9eb1
commit bd7d74f00e
2 changed files with 6 additions and 2 deletions

View File

@ -105,8 +105,10 @@ bool DisplayGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
myDisplayGUI->InvertDisplayMode();
int newMode = myDisplayGUI->GetDisplayMode();
SUIT_Session::session()->activeApplication()->desktop()->menuBar()->
changeItem( 211, newMode == 1 ? tr( "GEOM_MEN_WIREFRAME" ) : tr("GEOM_MEN_SHADING") );
getGeometryGUI()->action( 211 )->setMenuText( newMode == 1 ? tr( "GEOM_MEN_WIREFRAME" ) : tr("GEOM_MEN_SHADING") );
getGeometryGUI()->menuMgr()->update();
// SUIT_Session::session()->activeApplication()->desktop()->menuBar()->
// changeItem( 211, newMode == 1 ? tr( "GEOM_MEN_WIREFRAME" ) : tr("GEOM_MEN_SHADING") );
break;
}
case 212: // MENU VIEW - DISPLAY ALL

View File

@ -184,6 +184,8 @@ private:
QPtrList<SalomeApp_VTKSelector> myVTKSelectors;
SalomeApp_Displayer* myDisplayer;
friend class DisplayGUI;
};
#endif