From: vsv Date: Mon, 27 Aug 2018 13:06:54 +0000 (+0300) Subject: Issue #2602: Check selection with validators before its using. X-Git-Tag: SHAPER_V9_1_0RC1~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e85bb4f7065e5750e48a7c77056c80c0fa18e559;p=modules%2Fshaper.git Issue #2602: Check selection with validators before its using. --- diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index 2a60ec774..c3ced396b 100755 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -301,6 +301,12 @@ bool ModuleBase_WidgetMultiSelector::setSelection(QList // if there is at least one set, the result is true isDone = isDone || aProcessed; } + // Check the selection with validators + QString aError = getError(); + if (aError.length() > 0) { + aSelectionListAttr->clear(); + isDone = false; + } // updateObject - to update/redisplay feature // it is commented in order to perfom it outside the method //if (isDone) {