From 8c59892e6ceaac035a122d6cdcdaf787cade3a48 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 18 Feb 2016 16:29:26 +0300 Subject: [PATCH] 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. --- src/ModuleBase/ModuleBase_WidgetSelector.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); } //******************************************************************** -- 2.39.2