summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2021-02-15 22:15:31 +0100
committerMichal Klocek <michal.klocek@qt.io>2021-02-16 23:56:49 +0100
commit0853d884440322659745415259e929f11c98bef3 (patch)
treeb119e70b10b82ff5c0fc9662325ae711605b9164
parent827cbb1ff490b6b2da3bf71c6adac0956a6c3261 (diff)
Fix crash on exit in quicknanobrowser when popup
Quicknanobrowser uses "onClosing: destory()" on main window. This however will end up badly when there is open popup, since calling destroy on exit immediately deletes WebContents, while popup is still not closed. Let the application first close/destroy popup and then main qquickwindow. Change-Id: I9c3974cd0f6126558b876cb0199928797e3f7a47 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--examples/webengine/quicknanobrowser/ApplicationRoot.qml1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/webengine/quicknanobrowser/ApplicationRoot.qml b/examples/webengine/quicknanobrowser/ApplicationRoot.qml
index df4bbdb4a..22ca87dc1 100644
--- a/examples/webengine/quicknanobrowser/ApplicationRoot.qml
+++ b/examples/webengine/quicknanobrowser/ApplicationRoot.qml
@@ -66,7 +66,6 @@ QtObject {
property Component browserWindowComponent: BrowserWindow {
applicationRoot: root
- onClosing: destroy()
}
property Component browserDialogComponent: BrowserDialog {
onClosing: destroy()