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
This commit is contained in:
Tobias Doerffel
2008-09-07 13:33:02 +00:00
parent 01442ab394
commit 940d1d2ec5

View File

@@ -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" ) )