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/manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'daemon/manager.cpp') diff --git a/daemon/manager.cpp b/daemon/manager.cpp index e6ebf26..93b6b13 100644 --- a/daemon/manager.cpp +++ b/daemon/manager.cpp @@ -130,8 +130,7 @@ void Manager::onActiveVoiceCallChanged() { qCDebug(l) << "Manager::onActiveVoiceCallChanged()"; - QVariant incomingCallNotification = settings->property("incomingCallNotification"); - if (incomingCallNotification.isValid() && !incomingCallNotification.toBool()) { + if (!settings->property("incomingCallNotification").toBool()) { qCDebug(l) << "Ignoring ActiveVoiceCallChanged because of setting!"; return; } -- cgit v1.2.3