on xenial help sign in
only store when destroying the scene
commit63ca913de2e154fa51013bd8ff4ec0f2169145b8 authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 11 Feb 2015, 13:05 (12 years ago) parent57eb656
2 files changed+3−1
qml/Stages/WindowMoveResizeArea.qml+1−1 tests/qmltests/Stages/tst_WindowMoveResizeArea.qml+2
qml/Stages/WindowMoveResizeArea.qml+1−1
@@ -108,7 +108,7 @@ MouseArea {
108108 }
109109 }
110110
111− onReleased: {
111+ Component.onDestruction: {
112112 WindowStateStorage.saveGeometry(root.windowId, Qt.rect(target.x, target.y, target.width, target.height))
113113 }
114114}
tests/qmltests/Stages/tst_WindowMoveResizeArea.qml+2
@@ -177,6 +177,7 @@ Item {
177177
178178 // This will destroy the window and recreate it
179179 windowLoader.active = false;
180+ waitForRendering(root);
180181 windowLoader.active = true;
181182
182183 // Make sure it's again where we left it before destroying
@@ -200,6 +201,7 @@ Item {
200201
201202 // This will destroy the window and recreate it
202203 windowLoader.active = false;
204+ waitForRendering(root);
203205 windowLoader.active = true;
204206
205207 // Make sure its size is again the same as before