Assume local file in handler url

This commit is contained in:
Nicolas Fella 2019-06-14 21:53:52 +02:00
parent 79b42ff80c
commit 788563302f

View file

@ -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"));
}