From: stv Date: Mon, 14 Nov 2005 12:17:45 +0000 (+0000) Subject: Not required windows showed during dock windows state restoring. X-Git-Tag: V3_1_0a3~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c7c4e764907f4a5264f4768d62abb23911f36f8f;p=modules%2Fgui.git Not required windows showed during dock windows state restoring. --- 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;