T12394 Improve SMS URI display in kdeconnect-handler

This commit is contained in:
Michael Staggs 2020-02-07 11:02:28 +00:00 committed by Nicolas Fella
parent bd7b4c305a
commit 667988ec72

View file

@ -93,6 +93,9 @@ int main(int argc, char** argv)
} else if (urlToShare.isLocalFile() && open) {
displayUrl = urlToShare.toDisplayString(QUrl::PreferLocalFile);
uidialog.label->setText(i18n("Device to open %1 on:", displayUrl));
} else if (urlToShare.scheme() == QLatin1String("sms")) {
displayUrl = urlToShare.toDisplayString(QUrl::PreferLocalFile);
uidialog.label->setText(i18n("Device to send a SMS with:"));
} else {
displayUrl = urlToShare.toDisplayString(QUrl::PreferLocalFile);
uidialog.label->setText(i18n("Device to send %1 to:", displayUrl));