From: nds Date: Thu, 18 Feb 2016 13:29:26 +0000 (+0300) Subject: Clear selection cash by selection change X-Git-Tag: V_2.2.0~100 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c59892e6ceaac035a122d6cdcdaf787cade3a48;p=modules%2Fshaper.git Clear selection cash by selection change 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. --- diff --git a/src/ModuleBase/ModuleBase_WidgetSelector.cpp b/src/ModuleBase/ModuleBase_WidgetSelector.cpp index 131911c1a..02bb297ff 100755 --- a/src/ModuleBase/ModuleBase_WidgetSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetSelector.cpp @@ -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(); } //********************************************************************