]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3007: remove unnecessary activation of window
authorvsv <vsv@opencascade.com>
Mon, 2 Sep 2019 11:17:21 +0000 (14:17 +0300)
committervsv <vsv@opencascade.com>
Mon, 2 Sep 2019 11:17:21 +0000 (14:17 +0300)
src/ModuleBase/ModuleBase_Tools.cpp
src/XGUI/XGUI_PropertyPanel.cpp

index 40d74c1d20629effe4ebecb36d940559cc91d6ef..ca1d2950bf06693c1e563aa5762185cc74a60e71 100644 (file)
@@ -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();
index 7bfd6a3d4013eb7bdf9e06a25f96281eed264090..8b5ccaf65b408673ae09be020965f1dddbbdd80b 100644 (file)
@@ -295,7 +295,6 @@ void XGUI_PropertyPanel::activateNextWidget(ModuleBase_ModelWidget* theWidget,
 
   QList<ModuleBase_ModelWidget*>::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) {