]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Not required windows showed during dock windows state restoring.
authorstv <stv@opencascade.com>
Mon, 14 Nov 2005 12:17:45 +0000 (12:17 +0000)
committerstv <stv@opencascade.com>
Mon, 14 Nov 2005 12:17:45 +0000 (12:17 +0000)
src/Qtx/QtxDockAction.cxx

index f126120ed745787712bd8e0310c98a549131d5bf..16b3ade576993d91b249ed2b1c5b6847ea8a8dd6 100755 (executable)
@@ -877,7 +877,17 @@ void QtxDockAction::loadPlaceArea( const int place, QMainWindow* mw, QDockArea*
     }
     dw->setGeometry( inf->x, inf->y, inf->w, inf->h );
 
-    inf->vis ? dw->show() : dw->hide();
+    QAction* a = action( dw );
+    if ( a )
+    {
+      bool block = a->signalsBlocked();
+      a->blockSignals( true );
+      a->setOn( inf->vis );
+      a->blockSignals( block );
+    }
+
+    if ( mainWindow() && mainWindow()->appropriate( dw ) )
+      inf->vis ? dw->show() : dw->hide();
   }
 
   QWidget* wid = area;