]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PAL9491 - "View"->"Display mode"->"Shading" causes crash V3_1_0a1
authorasl <asl@opencascade.com>
Fri, 30 Sep 2005 07:00:00 +0000 (07:00 +0000)
committerasl <asl@opencascade.com>
Fri, 30 Sep 2005 07:00:00 +0000 (07:00 +0000)
src/DisplayGUI/DisplayGUI.cxx
src/GEOMGUI/GeometryGUI.h

index b329a2f6209625ac91c08b1701dfa2df50582088..c8775f09637b6132d69d722e0909425135732a47 100644 (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
index d671e02abfa77f544f5bc9be0acfa1e6aa0d9641..8ed80aee24dbc407d731b9556f15420e0f5f092b 100644 (file)
@@ -184,6 +184,8 @@ private:
   QPtrList<SalomeApp_VTKSelector> myVTKSelectors;
 
   SalomeApp_Displayer*        myDisplayer;
+
+friend class DisplayGUI;
 };
 
 #endif