From de3587286d7843997be6d857250761f03b44a2ed Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 2 Sep 2019 14:17:21 +0300 Subject: [PATCH] Issue #3007: remove unnecessary activation of window --- src/ModuleBase/ModuleBase_Tools.cpp | 1 - src/XGUI/XGUI_PropertyPanel.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index 40d74c1d2..ca1d2950b 100644 --- a/src/ModuleBase/ModuleBase_Tools.cpp +++ b/src/ModuleBase/ModuleBase_Tools.cpp @@ -152,7 +152,6 @@ 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->repaint(); diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 7bfd6a3d4..8b5ccaf65 100644 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -295,7 +295,6 @@ 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) { -- 2.39.2