Code Review
/
apps
/
mediaplayer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
c9f1c84
)
qml: QML wouldn't load if there isn't DBUS support builtin
09/9309/2
author
Matt Ranostay
<matt.ranostay@konsulko.com>
Thu, 4 May 2017 18:09:51 +0000
(11:09 -0700)
committer
Matt Ranostay
<matt.ranostay@konsulko.com>
Thu, 4 May 2017 18:16:33 +0000
(18:16 +0000)
Change-Id: Iec4df57949854d1b5a6bd07d4dd407fe4e1a44d2
Bug-AGL: SPEC-577
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
app/main.cpp
patch
|
blob
|
history
diff --git
a/app/main.cpp
b/app/main.cpp
index
a8c32d7
..
8ad7b7f
100644
(file)
--- 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";