From c7c4e764907f4a5264f4768d62abb23911f36f8f Mon Sep 17 00:00:00 2001 From: stv Date: Mon, 14 Nov 2005 12:17:45 +0000 Subject: [PATCH] Not required windows showed during dock windows state restoring. --- src/Qtx/QtxDockAction.cxx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Qtx/QtxDockAction.cxx b/src/Qtx/QtxDockAction.cxx index f126120ed..16b3ade57 100755 --- a/src/Qtx/QtxDockAction.cxx +++ b/src/Qtx/QtxDockAction.cxx @@ -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; -- 2.39.2