mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 17:00:35 +05:00
PAL9491 - "View"->"Display mode"->"Shading" causes crash
This commit is contained in:
parent
76e11e9eb1
commit
bd7d74f00e
@ -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
|
||||
|
@ -184,6 +184,8 @@ private:
|
||||
QPtrList<SalomeApp_VTKSelector> myVTKSelectors;
|
||||
|
||||
SalomeApp_Displayer* myDisplayer;
|
||||
|
||||
friend class DisplayGUI;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user