Commit 2b5d8bb3 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

mtp: copy url instead of making a new one

this way we preserve credentials and whatnot
parent bdaafe02
Pipeline #165931 passed with stage
in 2 minutes and 54 seconds
......@@ -152,8 +152,7 @@ enum MTPSlave::Url MTPSlave::checkUrl(const QUrl &url)
if (url.path().startsWith(QLatin1Char('/'))) {
return Url::Valid;
} else if (url.scheme() == QLatin1String("mtp") && url.path().isEmpty()) {
QUrl newUrl;
QUrl newUrl = url;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment