diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2014-08-10 13:08:49 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2014-08-10 13:08:49 +0200 |
| commit | 96ad10715d2f28913d102ed95bde44184cd512fd (patch) | |
| tree | f53423d03cba49572b0fda63541b365e1e343d6e /daemon/manager.cpp | |
| parent | c1534c22728355e658b275cf3f6ef13e85915676 (diff) | |
Check whether setting isValid before converting toBool
Diffstat (limited to 'daemon/manager.cpp')
| -rw-r--r-- | daemon/manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/manager.cpp b/daemon/manager.cpp index e80673d..3dd9108 100644 --- a/daemon/manager.cpp +++ b/daemon/manager.cpp @@ -120,7 +120,8 @@ void Manager::onActiveVoiceCallChanged() { logger()->debug() << "Manager::onActiveVoiceCallChanged()"; - if (!settings->property("incomingCallNotification").toBool()) { + QVariant incomingCallNotification = settings->property("incomingCallNotification"); + if (incomingCallNotification.isValid() && !incomingCallNotification.toBool()) { logger()->debug() << "Ignoring ActiveVoiceCallChanged because of setting!"; return; } |
