]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Clear selection cash by selection change
authornds <nds@opencascade.com>
Thu, 18 Feb 2016 13:29:26 +0000 (16:29 +0300)
committernds <nds@opencascade.com>
Thu, 18 Feb 2016 13:29:26 +0000 (16:29 +0300)
Case: Sketch, Angle creation, select 1st, 2nd, flyout. Activate 1st, click in empty place in the viewer. Perform the same for the 2nd argument. Activate 1st, try to select previous line which was 2rd. It is not possible because it is cashed.

src/ModuleBase/ModuleBase_WidgetSelector.cpp

index 131911c1ac63610d701806d4c99e745e0623aa09..02bb297ff5d9f1f415c1bc0c160bf80469e0f710 100755 (executable)
@@ -60,6 +60,9 @@ void ModuleBase_WidgetSelector::onSelectionChanged()
 
   if (isDone)
     updateFocus();
+
+  // we need to forget about previous validation result as the current selection can influence on it
+  clearValidatedCash();
 }
 
 //********************************************************************