From 2372fe00938f43ebbafbca2f83bde7f8ad8455b1 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 25 Dec 2015 17:42:04 +0300 Subject: [PATCH] #1150 Tab buttons problems #1112 tab key doesn't work on the last field of left panels Regression during the circle creation: the second restarted circle has no active control. --- src/XGUI/XGUI_PropertyPanel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 8d6c543dd..d9335f4bc 100755 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -167,7 +167,11 @@ void XGUI_PropertyPanel::onActivateNextWidget(ModuleBase_ModelWidget* theWidget) // it is important for features where in cases the same attributes are used, isCase for this // attribute returns true, however it can be placed in hidden stack widget(extrusion: elements, // sketch multi rotation -> single/full point) - activateNextWidget(theWidget, false); // true + // it is important to check the widget visibility to do not check of the next widget visible + // state if the current is not shown. (example: sketch circle re-entrant operation after mouse + // release in the viewer, next, radius, widget should be activated but the first is not visualized) + bool isVisible = theWidget->isVisible(); + activateNextWidget(theWidget, isVisible); } -- 2.39.2