From 0402743339cbf9efe0ea4ebbd36b27bbc7e9e7a6 Mon Sep 17 00:00:00 2001 From: Pierre Rossi Date: Thu, 13 Mar 2014 14:40:44 +0100 Subject: UI: fix a crash on shutdown Use a raw pointer instead of QScopedPointer for the UI components. Since the components are always parented to the view and deleted through the QObject cleanup mechanism, it was not correct to use QScopedPointer in the first place. Change-Id: I0c8fd9526e898439c52c6a6f538a66f8a1185ef9 Reviewed-by: Jocelyn Turcotte --- src/webengine/ui_delegates_manager.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/webengine/ui_delegates_manager.h') diff --git a/src/webengine/ui_delegates_manager.h b/src/webengine/ui_delegates_manager.h index a6d15a530..125cacff4 100644 --- a/src/webengine/ui_delegates_manager.h +++ b/src/webengine/ui_delegates_manager.h @@ -49,7 +49,6 @@ #include #include #include -#include #include #include @@ -67,7 +66,7 @@ #define ENUM_DECLARATION(TYPE, COMPONENT) \ TYPE #define MEMBER_DECLARATION(TYPE, COMPONENT) \ - QScopedPointer COMPONENT##Component + QQmlComponent *COMPONENT##Component class JavaScriptDialogController; QT_BEGIN_NAMESPACE -- cgit v1.2.3