]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issues #198 #118 Hotfix for "Remove part" action
authorsbh <sergey.belash@opencascade.com>
Thu, 30 Oct 2014 11:44:35 +0000 (14:44 +0300)
committersbh <sergey.belash@opencascade.com>
Thu, 30 Oct 2014 11:44:35 +0000 (14:44 +0300)
src/XGUI/XGUI_ActionsMgr.cpp

index 081ab537f9c7a6ab02e2b24ab4873b78388813f9..c1633f56c7e1fcb3b57a41ff06bd8eef3814edee 100644 (file)
@@ -135,8 +135,7 @@ void XGUI_ActionsMgr::updateByDocumentKind()
     QString aCmdDocKind;
     if(aCmd) {
       aCmdDocKind = aCmd->documentKind();
-    }
-    else {
+    } else if (eachAction) {
       QString aId = eachAction->data().toString();
       if (!aId.isEmpty()) {
         aCmdDocKind = aWorkshop->salomeConnector()->documentKind(aId);