summaryrefslogtreecommitdiff
path: root/ckitcallnotification/ckitcallprovider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ckitcallnotification/ckitcallprovider.cpp')
-rw-r--r--ckitcallnotification/ckitcallprovider.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ckitcallnotification/ckitcallprovider.cpp b/ckitcallnotification/ckitcallprovider.cpp
index adcb6d5..90dab97 100644
--- a/ckitcallnotification/ckitcallprovider.cpp
+++ b/ckitcallnotification/ckitcallprovider.cpp
@@ -21,9 +21,17 @@ CKitCallProvider::~CKitCallProvider()
void CKitCallProvider::activeCallChanged()
{
QVariantMap info = _activeCall->value().toMap();
+ qDebug() << "active call changed" << info;
+ if (!info.contains("state")) {
+ qWarning() << "broken active call context property";
+ }
int state = info["state"].toInt();
if (state == 0) {
QString displayName = info["displayName"].toString();
+ if (displayName.isEmpty()) {
+ // Ignore call until display name is not empty.
+ return;
+ }
// "Incoming call"
if (_notification) {
_notification->changeDisplayName(displayName);