From f739bfa116c5f4f2045892084ebe7ed7692f33f0 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 22 Oct 2014 16:17:38 +0400 Subject: [PATCH] Optimization of selection code --- src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp index 785d6b6f2..d68309a4f 100644 --- a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp @@ -133,6 +133,7 @@ bool ModuleBase_WidgetShapeSelector::storeValue() const if (aBody) { aSelect->setValue(aBody, myShape); updateObject(myFeature); + return true; } } else { boost::shared_ptr aRef = @@ -142,9 +143,10 @@ bool ModuleBase_WidgetShapeSelector::storeValue() const if (!(aObject && aObject->isSame(mySelectedObject))) { aRef->setValue(mySelectedObject); updateObject(myFeature); + return true; } } - return true; + return false; } //******************************************************************** -- 2.39.2