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") {
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";