diff options
Diffstat (limited to 'app/main.cpp')
-rw-r--r-- | app/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/main.cpp b/app/main.cpp index e8d4082..dd84f59 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -87,12 +87,16 @@ int main(int argc, char *argv[]) QQmlContext *context = engine.rootContext(); context->setContextProperty("mediaFiles", mediaFiles); -#if defined(HAVE_DBUS) && defined(HAVE_LIGHTMEDIASCANNER) +#if defined(HAVE_DBUS) DbusService dbus_service; context->setContextProperty("dbus", &dbus_service); +#if defined(HAVE_LIGHTMEDIASCANNER) if (!dbus_service.enableLMS()) qWarning() << "Cannot run enableLMS"; #endif + if (!dbus_service.enableBluetooth()) + qWarning() << "Cannot run enableBluetooth"; +#endif engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml"))); return app.exec(); |