Salome HOME
Merge from OCC_development_generic_2006
[modules/gui.git] / src / Qtx / QtxActionMenuMgr.cxx
index d49bbf482373719b4263177240c89c785fd87326..7782a7b57ccb9c64074a8e2df405c0ddf163afe7 100644 (file)
@@ -143,7 +143,7 @@ myMenu( mw )
 
 QtxActionMenuMgr::~QtxActionMenuMgr()
 {
-  for ( NodeListIterator it( myRoot.children ); it.current(); ++it )
+  for ( NodeListIterator it( myRoot.children ); it.current() && myMenu; ++it )
   {
     QAction* a = itemAction( it.current()->id );
     if ( !a )