From 940d1d2ec511c6aea47f79fa86ad5be807154877 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 7 Sep 2008 13:33:02 +0000 Subject: [PATCH] only restore widget settings if 'visible'-attribute exists git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1576 0778d3d1-df1d-0410-868b-ea421aaaa00d --- src/gui/main_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp index fa86bb676..b7966a90d 100644 --- a/src/gui/main_window.cpp +++ b/src/gui/main_window.cpp @@ -595,7 +595,7 @@ void mainWindow::restoreWidgetState( QWidget * _w, const QDomElement & _de ) tMax( 0, _de.attribute( "y" ).toInt() ), tMax( 100, _de.attribute( "width" ).toInt() ), tMax( 100, _de.attribute( "height" ).toInt() ) ); - if( !r.isNull() ) + if( _de.hasAttribute( "visible" ) && !r.isNull() ) { if ( _w->parentWidget() != NULL && _w->parentWidget()->inherits( "QMdiSubWindow" ) )