From 52b798846358aad7fd1f1854f9f914687a0e233b Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 14 Jul 2015 11:50:24 +0300 Subject: [PATCH] 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. --- src/ModuleBase/ModuleBase_Operation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } -- 2.39.2