core/kio/kurlnavigator.diff

24 lines
637 B
Diff
Raw Normal View History

2015-12-10 04:04:02 +08:00
--- a/src/filewidgets/kurlnavigator.cpp
+++ b/src/filewidgets/kurlnavigator.cpp
@@ -736,8 +736,8 @@
// Keep scheme, hostname etc. as this is needed for e. g. browsing
// FTP directories
- const QUrl currentUrl = q->locationUrl();
- QString pathOrUrl = currentUrl.toString(QUrl::PreferLocalFile);
+ QUrl url = q->locationUrl();
+ QString pathOrUrl = url.path();
if (!pathOrUrl.isEmpty()) {
if (index == 0) {
@@ -753,7 +753,8 @@
}
}
- return QUrl::fromUserInput(pathOrUrl);
+ url.setPath(pathOrUrl);
+ return url;
}
void KUrlNavigator::Private::switchToBreadcrumbMode()