From 7116e096e1288170da3820c77e41e377f9bd69be Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Mon, 18 May 2015 09:35:38 +0200 Subject: Save default settings to DConf if not present --- daemon/musicmanager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'daemon/musicmanager.cpp') diff --git a/daemon/musicmanager.cpp b/daemon/musicmanager.cpp index 5ae1786..2a426db 100644 --- a/daemon/musicmanager.cpp +++ b/daemon/musicmanager.cpp @@ -148,11 +148,9 @@ void MusicManager::callMprisMethod(const QString &method) void MusicManager::handleMusicControl(WatchConnector::MusicControl operation) { qCDebug(l) << "operation from watch:" << operation; - QVariant useSystemVolumeVar = settings->property("useSystemVolume"); - bool useSystemVolume = (useSystemVolumeVar.isValid() && useSystemVolumeVar.toBool()); // System volume controls - if (useSystemVolume && _pulseBus != NULL && + if (settings->property("useSystemVolume").toBool() && _pulseBus != NULL && (operation == WatchConnector::musicVOLUME_UP || operation == WatchConnector::musicVOLUME_DOWN)) { // Query current volume QDBusMessage call = QDBusMessage::createMethodCall("com.Meego.MainVolume2", "/com/meego/mainvolume2", -- cgit v1.2.3