Salome HOME
Issue #1502 Select sub-solids in viewer : Compsolid shape selection type should be...
[modules/shaper.git] / src / ModuleBase / ModuleBase_Operation.cpp
index 8b19dcd8270b9c0a57a0f5f1826ba605c911b774..af08c48fd0d23ab1fe601447a8c084a49e278dd5 100644 (file)
@@ -142,6 +142,17 @@ void ModuleBase_Operation::onValuesChanged()
   myIsModified = true;
 }
 
+void ModuleBase_Operation::onValueStateChanged(int thePreviousState)
+{
+  if (propertyPanel()) {
+    ModuleBase_ModelWidget* aWidget = propertyPanel()->activeWidget();
+    if (aWidget) {
+      if (aWidget->getValueState() == ModuleBase_ModelWidget::ModifiedInPP)
+        myIsModified = true;
+    }
+  }
+}
+
 void ModuleBase_Operation::setPropertyPanel(ModuleBase_IPropertyPanel* theProp) 
 { 
   myPropertyPanel = theProp;