Commit 42ef318a authored by Gleb Popov's avatar Gleb Popov 💬 Committed by David Faure

kioclient: Don't convert `:x:y` to `?line=x&column=y` for URLs starting with remote schemes.

BUG: 408632

Test Plan: `kioclient5 exec http://localhost:9000` now works correctly.

Subscribers: plasma-devel, #frameworks

Differential Revision:
parent b8166adb
......@@ -51,6 +51,15 @@ public:
* if the path starts with http:// or any other scheme, except file://
* we also don't want to do anything with URL
if (!QUrl(pathOrUrl).isLocalFile()) {
url = QUrl::fromUserInput(pathOrUrl, QDir::currentPath(), QUrl::DefaultResolution);
* ok, the path as is, is no existing file, now, cut away :xx:yy stuff as cursor
* this will make test:50 to test with line 50
Markdown is supported
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