From 55801940acc1a91b5b5d7564c4962c3823e1dfd0 Mon Sep 17 00:00:00 2001 From: sbh Date: Thu, 30 Oct 2014 14:44:35 +0300 Subject: [PATCH] Issues #198 #118 Hotfix for "Remove part" action --- src/XGUI/XGUI_ActionsMgr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.39.2