mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-14 05:39:02 +08:00
24 lines
637 B
Diff
24 lines
637 B
Diff
|
--- 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()
|