summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r--src/gui/kernel/qwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index 82eb12b..1f2cd8c 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -6731,7 +6731,7 @@ QByteArray QWidget::saveGeometry() const
Q_D(const QWidget);
QRect newFramePosition = frameGeometry();
QRect newNormalPosition = normalGeometry();
- if(d->topData()->wasMaximized) {
+ if(d->topData()->wasMaximized && !(windowState() & Qt::WindowMaximized)) {
// Change the starting position
newFramePosition.moveTo(0, 0);
newNormalPosition.moveTo(0, 0);