From fe2aebc3fedb8e2c216995a365ad254270fbd079 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Fri, 5 Jan 2018 02:08:21 +0900 Subject: Fix a runtime error when agl_hmi_framework is not available Change-Id: Ic5cfaabbc9af61eb57aa99a008544904afbc8068 Signed-off-by: Tasuku Suzuki --- src/aglextras/hmi/aglapplication.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/aglextras/hmi/aglapplication.cpp b/src/aglextras/hmi/aglapplication.cpp index 295c017..102a990 100644 --- a/src/aglextras/hmi/aglapplication.cpp +++ b/src/aglextras/hmi/aglapplication.cpp @@ -28,8 +28,10 @@ QT_BEGIN_NAMESPACE -AGLApplicationPrivate::AGLApplicationPrivate (AGLApplication*) +AGLApplicationPrivate::AGLApplicationPrivate (AGLApplication *app) : binding_address(new QUrl) + , engine(new QQmlApplicationEngine(app)) + { ; } @@ -73,7 +75,6 @@ AGLApplication::AGLApplication (int& argc, char** argv) query.addQueryItem(QStringLiteral("token"), d_ptr->secret); d_ptr->binding_address->setQuery(query); - d_ptr->engine = new QQmlApplicationEngine(); if (!d_ptr->engine) { qDebug("Cannot initialize QML Engine"); exit(EXIT_FAILURE); -- cgit 1.2.3-korg