mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +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();
|
myDisplayGUI->InvertDisplayMode();
|
||||||
int newMode = myDisplayGUI->GetDisplayMode();
|
int newMode = myDisplayGUI->GetDisplayMode();
|
||||||
SUIT_Session::session()->activeApplication()->desktop()->menuBar()->
|
getGeometryGUI()->action( 211 )->setMenuText( newMode == 1 ? tr( "GEOM_MEN_WIREFRAME" ) : tr("GEOM_MEN_SHADING") );
|
||||||
changeItem( 211, 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;
|
break;
|
||||||
}
|
}
|
||||||
case 212: // MENU VIEW - DISPLAY ALL
|
case 212: // MENU VIEW - DISPLAY ALL
|
||||||
|
@ -184,6 +184,8 @@ private:
|
|||||||
QPtrList<SalomeApp_VTKSelector> myVTKSelectors;
|
QPtrList<SalomeApp_VTKSelector> myVTKSelectors;
|
||||||
|
|
||||||
SalomeApp_Displayer* myDisplayer;
|
SalomeApp_Displayer* myDisplayer;
|
||||||
|
|
||||||
|
friend class DisplayGUI;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user