From: nds Date: Tue, 14 Jul 2015 08:50:24 +0000 (+0300) Subject: Code correction to check the property panel is not empty. PartSet has no own property... X-Git-Tag: V_1.3.0~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=52b798846358aad7fd1f1854f9f914687a0e233b;p=modules%2Fshaper.git Code correction to check the property panel is not empty. PartSet has no own property panel, but an operation of create can be run with some selection in object browser. --- diff --git a/src/ModuleBase/ModuleBase_Operation.cpp b/src/ModuleBase/ModuleBase_Operation.cpp index fd2e8f9e6..60f5b1b08 100644 --- a/src/ModuleBase/ModuleBase_Operation.cpp +++ b/src/ModuleBase/ModuleBase_Operation.cpp @@ -272,7 +272,7 @@ void ModuleBase_Operation::activateByPreselection() return; ModuleBase_ModelWidget* aFilledWgt = 0; - if (myPropertyPanel && !myPreSelection.empty()) { + if (myPropertyPanel) { const QList& aWidgets = myPropertyPanel->modelWidgets(); if (!aWidgets.empty()) { ModuleBase_ModelWidget* aWgt = 0; @@ -304,10 +304,10 @@ void ModuleBase_Operation::activateByPreselection() if (aFilledWgt) emit activatedByPreselection(); } + // 4. activate the next obligatory widget + myPropertyPanel->activateNextWidget(aFilledWgt); } - // 4. activate the next obligatory widget - myPropertyPanel->activateNextWidget(aFilledWgt); clearPreselection(); }