diff options
author | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-01-12 20:04:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2018-01-12 20:04:09 +0000 |
commit | 57100f64e1813eac59ddc0f2b98641b351fda03b (patch) | |
tree | 2b701cca616189898e99b3034adf2aef98c3fc18 | |
parent | 4621afef9abf2367d3913e57468e61a1e373616f (diff) | |
parent | fe2aebc3fedb8e2c216995a365ad254270fbd079 (diff) |
Merge "Fix a runtime error when agl_hmi_framework is not available"flounder_5.99.1flounder/5.99.1eel_5.1.0eel_5.0.3eel_5.0.2eel_5.0.1eel/5.1.0eel/5.0.3eel/5.0.2eel/5.0.15.99.15.1.05.0.35.0.25.0.1eel
-rw-r--r-- | src/aglextras/hmi/aglapplication.cpp | 5 |
1 files 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); |