[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:26:40 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=d48b8f1

The following commit has been merged in the master branch:
commit d48b8f145bf03937a6629d6f0ebc70329c05e112
Author: Albert Vaca <albertvaka at gmail.com>
Date:   Thu Jul 25 18:18:50 2013 +0200

    Call notifications now show 'unknown number' instead of nothing when receiving a private call
---
 daemon/packageinterfaces/notificationpackageinterface.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/daemon/packageinterfaces/notificationpackageinterface.cpp b/daemon/packageinterfaces/notificationpackageinterface.cpp
index 47f4d9f..c3130fa 100644
--- a/daemon/packageinterfaces/notificationpackageinterface.cpp
+++ b/daemon/packageinterfaces/notificationpackageinterface.cpp
@@ -34,15 +34,16 @@ KNotification* NotificationPackageInterface::createNotification(const QString& d
     if (npType == "ringing") {
         type = "callReceived";
         icon = "call-start";
-        content = "Incoming call from " + np.get<QString>("phoneNumber");
+        QString number =
+        content = "Incoming call from " + np.get<QString>("phoneNumber","unknown number");
     } else if (npType == "missedCall") {
         type = "missedCall";
         icon = "call-start";
-        content = "Missed call from " + np.get<QString>("phoneNumber");
+        content = "Missed call from " + np.get<QString>("phoneNumber","unknown number");
     } else if (npType == "sms") {
         type = "smsReceived";
         icon = "mail-receive";
-        content = "SMS received from " + np.get<QString>("phoneNumber");
+        content = "SMS received from " + np.get<QString>("phoneNumber","unknown number");
     } else if (npType == "battery") {
         type = "battery100";
         icon = "battery-100";

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list