SMS message notification didn't show any text

QString content was shadowing a previously declared variable

BUG: 324857
This commit is contained in:
Simon Cadman 2013-09-13 19:20:24 +02:00 committed by Albert Vaca
parent 006a0b8dad
commit 028fc30470

View file

@ -55,8 +55,8 @@ KNotification* TelephonyPlugin::createNotification(const NetworkPackage& np)
} else if (event == "sms") {
type = "smsReceived";
icon = "mail-receive";
QString content = np.get<QString>("messageBody","");
content = i18n("SMS from %1: %2", phoneNumber, content);
QString messageBody = np.get<QString>("messageBody","");
content = i18n("SMS from %1: %2", phoneNumber, messageBody);
} else if (event == "talking") {
return NULL;
} else {