]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2602: Check selection with validators before its using.
authorvsv <vsv@opencascade.com>
Mon, 27 Aug 2018 13:06:54 +0000 (16:06 +0300)
committervsv <vsv@opencascade.com>
Mon, 27 Aug 2018 13:07:09 +0000 (16:07 +0300)
src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp

index 2a60ec774d664b8b78b12ca86a4eac6130dad609..c3ced396b3766843a11050b83f80219608c2575c 100755 (executable)
@@ -301,6 +301,12 @@ bool ModuleBase_WidgetMultiSelector::setSelection(QList<ModuleBase_ViewerPrsPtr>
     // 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) {