]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Code correction to check the property panel is not empty. PartSet has no own property...
authornds <natalia.donis@opencascade.com>
Tue, 14 Jul 2015 08:50:24 +0000 (11:50 +0300)
committernds <natalia.donis@opencascade.com>
Tue, 14 Jul 2015 08:50:24 +0000 (11:50 +0300)
src/ModuleBase/ModuleBase_Operation.cpp

index fd2e8f9e61535dffe6d54ce3cde7ea20314f2561..60f5b1b0843beb568a15c516c4ba2ea97ce0b013 100644 (file)
@@ -272,7 +272,7 @@ void ModuleBase_Operation::activateByPreselection()
     return;
 
   ModuleBase_ModelWidget* aFilledWgt = 0;
-  if (myPropertyPanel && !myPreSelection.empty()) {
+  if (myPropertyPanel) {
     const QList<ModuleBase_ModelWidget*>& 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();
 }