...
 
Commits (3)
......@@ -60,7 +60,7 @@ int main(int argc, char** argv)
description,
QStringLiteral(KDECONNECT_VERSION_STRING),
description,
KAboutLicense::GPL,
KAboutLicense::GPL,
i18n("(C) 2017 Aleix Pol Gonzalez"));
about.addAuthor( QStringLiteral("Aleix Pol Gonzalez"), QString(), QStringLiteral("aleixpol@kde.org") );
KAboutData::setApplicationData(about);
......@@ -80,7 +80,7 @@ int main(int argc, char** argv)
return 1;
}
urlToShare = QUrl::fromUserInput(parser.positionalArguments().constFirst(), QDir::currentPath());
urlToShare = QUrl::fromUserInput(parser.positionalArguments().constFirst(), QDir::currentPath(), QUrl::AssumeLocalFile);
open = parser.isSet(QStringLiteral("open"));
}
......@@ -102,10 +102,10 @@ int main(int argc, char** argv)
uidialog.label->setText(i18n("Device to call %1 with:", displayUrl));
} else if (urlToShare.isLocalFile() && open) {
displayUrl = urlToShare.toDisplayString(QUrl::PreferLocalFile);
uidialog.label->setText(i18n("Device to send %1 to:", displayUrl));
uidialog.label->setText(i18n("Device to open %1 on:", displayUrl));
} else {
displayUrl = urlToShare.toDisplayString(QUrl::PreferLocalFile);
uidialog.label->setText(i18n("Device to open %1 on:", displayUrl));
uidialog.label->setText(i18n("Device to send %1 to:", displayUrl));
}
dialog.setWindowTitle(displayUrl);
......