Salome HOME
Fix for exception on deletion of a Part from PartSet when it is active
[modules/shaper.git] / src / XGUI / XGUI_PropertyPanel.cpp
index 10d39b798efacf2a7c4317a8b471de97580f74d7..e37d69f9132f077dba252ba81d4d94f5ecd2c3f4 100755 (executable)
@@ -17,6 +17,9 @@
 #include <ModuleBase_PageWidget.h>
 #include <ModuleBase_WidgetFactory.h>
 #include <ModuleBase_OperationDescription.h>
+#include <ModuleBase_Events.h>
+
+#include <Events_Loop.h>
 
 #include <ModelAPI_Session.h>
 #include <ModelAPI_Validator.h>
@@ -436,6 +439,9 @@ bool XGUI_PropertyPanel::setActiveWidget(ModuleBase_ModelWidget* theWidget)
     theWidget->activate();
   }
   myActiveWidget = theWidget;
+  static Events_ID anEvent = Events_Loop::eventByName(EVENT_UPDATE_BY_WIDGET_SELECTION);
+  Events_Loop::loop()->flush(anEvent);
+
   return true;
 }