on xenial help sign in
Merge pull request #42 from doniks/460

Do not store window with zero size

commit98a1550cc82639e67e1a7d81592b184038565e1a authorJan Sprinz <NeoTheThird@users.noreply.github.com> dateSat 9 Jun 2018, 10:46 (8 years ago) parent5aa12fae04846e
1 file changed+4−1
qml/Stage/WindowResizeArea.qml+4−1
qml/Stage/WindowResizeArea.qml+4−1
@@ -101,7 +101,10 @@ MouseArea {
101101 state = WindowStateStorage.WindowStateNormal;
102102 }
103103 windowStateStorage.saveState(root.windowId, state & ~WindowStateStorage.WindowStateMinimized); // clear the minimized bit when saving
104− windowStateStorage.saveGeometry(root.windowId, Qt.rect(priv.normalX, priv.normalY, priv.normalWidth, priv.normalHeight));
104+ // do not store window sizes if they are zero. this happens in staged mode
105+ if ( priv.normalWidth && priv.normalHeight ) {
106+ windowStateStorage.saveGeometry(root.windowId, Qt.rect(priv.normalX, priv.normalY, priv.normalWidth, priv.normalHeight));
107+ }
105108 }
106109
107110 QtObject {