From 0853d884440322659745415259e929f11c98bef3 Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Mon, 15 Feb 2021 22:15:31 +0100 Subject: 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 --- examples/webengine/quicknanobrowser/ApplicationRoot.qml | 1 - 1 file changed, 1 deletion(-) (limited to 'examples') 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() -- cgit v1.2.3