From 2921af35f593a7f1ffcf725e8f291c3aad760c3c Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Wed, 24 Dec 2014 10:59:22 +0100 Subject: [PATCH] Fix size reset for maximized windows --- src/gui/MainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 7ad4afc73..e5d00f35c 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -662,8 +662,8 @@ void MainWindow::saveWidgetState( QWidget * _w, QDomElement & _de ) void MainWindow::restoreWidgetState( QWidget * _w, const QDomElement & _de ) { - QRect r( qMax( 0, _de.attribute( "x" ).toInt() ), - qMax( 0, _de.attribute( "y" ).toInt() ), + QRect r( qMax( 1, _de.attribute( "x" ).toInt() ), + qMax( 1, _de.attribute( "y" ).toInt() ), qMax( 100, _de.attribute( "width" ).toInt() ), qMax( 100, _de.attribute( "height" ).toInt() ) ); if( _de.hasAttribute( "visible" ) && !r.isNull() )