diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-25 01:36:10 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-25 01:36:10 +0200 |
commit | 2b4e878938215ac743bdc36deace4c2a4cb0c7a2 (patch) | |
tree | b2b8341615898e5cbf5cdb08ee34a629df093897 /ckitcallnotification | |
parent | 5153fb9a2b5d8a7af069a75b75bdc7bee591d0a9 (diff) | |
download | sowatch-2b4e878938215ac743bdc36deace4c2a4cb0c7a2.tar.gz sowatch-2b4e878938215ac743bdc36deace4c2a4cb0c7a2.zip |
preparing for watchlet support
Diffstat (limited to 'ckitcallnotification')
-rw-r--r-- | ckitcallnotification/ckitcallprovider.cpp | 8 |
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); |