bool ModuleBase_Operation::commit()
{
if (canBeCommitted()) {
+ ModuleBase_IPropertyPanel* aPanel = propertyPanel();
+ if (aPanel)
+ aPanel->onAcceptData();
+
SessionPtr aMgr = ModelAPI_Session::get();
commitOperation();
{
if (XGUI_Tools::workshop(myWorkshop)->errorMgr()->isApplyEnabled() &&
theOperation->isModified()) {
- ModuleBase_IPropertyPanel* aPanel = theOperation->propertyPanel();
- if (aPanel) {
- XGUI_PropertyPanel* aPP = dynamic_cast<XGUI_PropertyPanel*>(aPanel);
- aPP->onAcceptData();
- }
isCommitted = theOperation->commit();
} else {
isCommitted = false;