D27268: Fixed handling of relative paths by KUrlNavigator
Marcin DÅ‚ubakowski
noreply at phabricator.kde.org
Sun Feb 9 17:14:42 GMT 2020
mdlubakowski created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
mdlubakowski requested review of this revision.
REVISION SUMMARY
Typing a relative path (one that doesn't start with / or protocol) into KUrlNavigator widget currently always causes it to try opening it in browser.
This is caused inside KUrlNavigator::uncommitedUrl by QUrl::fromUserInput if we don't give it current working directory path as a second argument.
However, rather than providing cwd, it makes more sense to simply concat path typed by user to current URL, because this way it works correctly with protocols like ftp: gdrive: programs: etc.
BUG: 319700
REPOSITORY
R241 KIO
BRANCH
fix-relative-paths (branched from master)
REVISION DETAIL
https://phabricator.kde.org/D27268
AFFECTED FILES
src/filewidgets/kurlnavigator.cpp
To: mdlubakowski
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200209/e775ab90/attachment.html>
More information about the Kde-frameworks-devel
mailing list