summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-05-09 04:03:17 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2017-05-09 04:03:17 +0000
commit583a1da88bfc703bad7568d182a99cf4ead8b65b (patch)
treeb9e40b5d5a25e91b3ed708754a307f7f10c645da /app
parentba39b5e73165886e9739d23f97f7df842ae7d7e1 (diff)
parent4732e15d514370f1417f8202c721b60af545b892 (diff)
Merge "qml: QML wouldn't load if there isn't DBUS support builtin"dab_3.99.1dab/3.99.13.99.1
Diffstat (limited to 'app')
-rw-r--r--app/main.cpp3
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";