diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-05-04 11:09:51 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-05-04 18:16:33 +0000 |
commit | 4732e15d514370f1417f8202c721b60af545b892 (patch) | |
tree | a902b741daadf25af8824d648c5e90d88be19375 /app | |
parent | c9f1c84b30076d2750c73364870a9b5884a183bd (diff) |
qml: QML wouldn't load if there isn't DBUS support builtin
Change-Id: Iec4df57949854d1b5a6bd07d4dd407fe4e1a44d2
Bug-AGL: SPEC-577
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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"; |