]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_WidgetValidated.cpp
Salome HOME
Issue #725 - Translation with parameters - wrong coordinates
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetValidated.cpp
index e00fd80941614a75dfb4002a1c2bb32f7e5cd11d..49734b6216a553fa2c7d2ce814537f8d9ead7bae 100644 (file)
@@ -24,7 +24,7 @@ ModuleBase_WidgetValidated::ModuleBase_WidgetValidated(QWidget* theParent,
                                                        ModuleBase_IWorkshop* theWorkshop,
                                                        const Config_WidgetAPI* theData,
                                                        const std::string& theParentId)
-: ModuleBase_ModelWidget(theParent, theData, theParentId), isValidateBlocked(false),
+: ModuleBase_ModelWidget(theParent, theData, theParentId),
   myWorkshop(theWorkshop)
 {
 }
@@ -120,10 +120,6 @@ bool ModuleBase_WidgetValidated::isValidSelection(const ModuleBase_ViewerPrs& th
     return aValid;
   }
 
-  if (isValidateBlocked)
-    return true;
-  isValidateBlocked = true;
-
   DataPtr aData = myFeature->data();
   AttributePtr anAttribute = myFeature->attribute(attributeID());
 
@@ -160,7 +156,6 @@ bool ModuleBase_WidgetValidated::isValidSelection(const ModuleBase_ViewerPrs& th
   aLoop->flush(aRedispEvent);
 
   storeValidState(theValue, aValid);
-  isValidateBlocked = false;
   return aValid;
 }