From f1d8496b109dbb89fa0147e336599e9be9c1e8e2 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 3 Nov 2016 13:57:20 +0300 Subject: [PATCH] #1821 Axis by two plains: problem in selection update check canAcceptFocus before focus set. --- src/XGUI/XGUI_PropertyPanel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index fc50a6d73..fa2ba0da8 100755 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -250,6 +250,9 @@ void XGUI_PropertyPanel::activateNextWidget(ModuleBase_ModelWidget* theWidget, if (!aCurrentWidget->isObligatory()) continue; // not obligatory widgets are not activated automatically + if (!aCurrentWidget->canAcceptFocus()) + continue; // do not set focus if it can not be accepted, case: optional choice + if (aCurrentWidget->focusTo()) { return; } -- 2.39.2