From: vsv Date: Tue, 19 Nov 2019 15:01:05 +0000 (+0300) Subject: Issue #3047: Rollback modifications dedicated to property panel performance X-Git-Tag: V9_5_0a1~169 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d04b5f4360b23cf376beff9c5e7c12d0e6a5f1e;p=modules%2Fshaper.git Issue #3047: Rollback modifications dedicated to property panel performance --- diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index a1c4684a6..5055c0275 100644 --- a/src/ModuleBase/ModuleBase_Tools.cpp +++ b/src/ModuleBase/ModuleBase_Tools.cpp @@ -154,6 +154,7 @@ void activateWindow(QWidget* theWidget, const QString& theInfo) void setFocus(QWidget* theWidget, const QString& theInfo) { + activateWindow(theWidget); theWidget->setFocus(); // rectangle of focus is not visible on tool button widgets theWidget->update(); diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 24bd52b94..c5d0c93b8 100644 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -303,6 +303,7 @@ void XGUI_PropertyPanel::activateNextWidget(ModuleBase_ModelWidget* theWidget, QList::const_iterator anIt = myWidgets.begin(), aLast = myWidgets.end(); bool isFoundWidget = false; + ModuleBase_Tools::activateWindow(this, "XGUI_PropertyPanel::activateNextWidget()"); for (; anIt != aLast; anIt++) { ModuleBase_ModelWidget* aCurrentWidget = *anIt; if (isFoundWidget || !theWidget) {