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:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user