]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Avoid crash when nested key is NULL
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 29 Apr 2014 14:14:15 +0000 (18:14 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 29 Apr 2014 14:14:15 +0000 (18:14 +0400)
src/XGUI/XGUI_ActionsMgr.cpp

index 51efba53326095db0507afe8f7aebfbe6e6242db..6eac9883a9ca342fa3a299b7d9d5c3d4094d2b54 100644 (file)
@@ -91,6 +91,7 @@ void XGUI_ActionsMgr::restoreCommandState()
 void XGUI_ActionsMgr::setNestedActionsEnabled(bool isEnabled)
 {
   foreach(QString eachKey, myNestedActions) {
-    myActions[eachKey]->setEnabled(isEnabled);
+    if (myActions.contains(eachKey))
+      myActions[eachKey]->setEnabled(isEnabled);
   }
 }