From: Matt Ranostay Date: Thu, 4 May 2017 18:09:51 +0000 (-0700) Subject: qml: QML wouldn't load if there isn't DBUS support builtin X-Git-Tag: dab_3.99.1^2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=4732e15d514370f1417f8202c721b60af545b892;p=apps%2Fmediaplayer.git qml: QML wouldn't load if there isn't DBUS support builtin Change-Id: Iec4df57949854d1b5a6bd07d4dd407fe4e1a44d2 Bug-AGL: SPEC-577 Signed-off-by: Matt Ranostay --- diff --git a/app/main.cpp b/app/main.cpp index a8c32d7..8ad7b7f 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -90,8 +90,11 @@ int main(int argc, char *argv[]) #if defined(HAVE_DBUS) DbusService dbus_service; context->setContextProperty("dbus", &dbus_service); +#endif engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml"))); + +#if defined(HAVE_DBUS) #if defined(HAVE_LIGHTMEDIASCANNER) if (!dbus_service.enableLMS()) qWarning() << "Cannot run enableLMS";