From: sbh Date: Thu, 30 Oct 2014 11:44:35 +0000 (+0300) Subject: Issues #198 #118 Hotfix for "Remove part" action X-Git-Tag: V_0.5~58^2~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=55801940acc1a91b5b5d7564c4962c3823e1dfd0;p=modules%2Fshaper.git Issues #198 #118 Hotfix for "Remove part" action --- diff --git a/src/XGUI/XGUI_ActionsMgr.cpp b/src/XGUI/XGUI_ActionsMgr.cpp index 081ab537f..c1633f56c 100644 --- a/src/XGUI/XGUI_ActionsMgr.cpp +++ b/src/XGUI/XGUI_ActionsMgr.cpp @@ -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);