added minimal width and height when restoring subwindow-states

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1313 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-07-17 00:16:02 +00:00
parent cac0b846aa
commit e80cf4b9fc

View File

@@ -588,8 +588,8 @@ void mainWindow::restoreWidgetState( QWidget * _w, const QDomElement & _de )
{
QRect r( tMax( 0, _de.attribute( "x" ).toInt() ),
tMax( 0, _de.attribute( "y" ).toInt() ),
_de.attribute( "width" ).toInt(),
_de.attribute( "height" ).toInt() );
tMax( 100, _de.attribute( "width" ).toInt() ),
tMax( 100, _de.attribute( "height" ).toInt() ) );
if( !r.isNull())
{
if ( _w->parentWidget() != NULL &&