Call notifications now show 'unknown number' instead of nothing when receiving a private call

This commit is contained in:
Albert Vaca 2013-07-25 18:18:50 +02:00
parent ee7f6b0c6d
commit d48b8f145b

View file

@ -34,15 +34,16 @@ KNotification* NotificationPackageInterface::createNotification(const QString& d
if (npType == "ringing") { if (npType == "ringing") {
type = "callReceived"; type = "callReceived";
icon = "call-start"; 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") { } else if (npType == "missedCall") {
type = "missedCall"; type = "missedCall";
icon = "call-start"; 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") { } else if (npType == "sms") {
type = "smsReceived"; type = "smsReceived";
icon = "mail-receive"; 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") { } else if (npType == "battery") {
type = "battery100"; type = "battery100";
icon = "battery-100"; icon = "battery-100";