Skip to content

UrlInfo: Pass current working directory to QUrl::fromUserInput

Kai Uwe Broulik requested to merge work/kbroulik/urlinfo-cwd into master

Only for a "valid file path on the system" will it return a local path, but for "foo" it would reutrn "http://foo" when it doesn't have a working directory to resolve from.

~/kde $ kwrite foo

On my KF6 session it now opens ~/kde/foo as a “New file” rather than trying to open non-existing http://foo

Merge request reports