diff options
| author | Emmanuel Pescosta <[email protected]> | 2015-10-10 15:09:48 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2015-10-21 13:45:45 +0200 |
| commit | 5dd5eaf08da4b7d11e53c90096c2ea0e6a19e840 (patch) | |
| tree | 8b2b1e11ecb6cbb849aff34c72beb02ef715f116 /src/global.cpp | |
| parent | 4d6cd761d8987adee511546f644ecf5f357148ad (diff) | |
Allow home directories with non-local file paths.
Paths like file:/home/me work now instead of showing
an error message.
BUG: 352743
BUG: 353550
FIXED-IN: 15.08.3
REVIEW: 125586
Diffstat (limited to 'src/global.cpp')
| -rw-r--r-- | src/global.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/global.cpp b/src/global.cpp index 2f23ae4d4..d87a29c7a 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -20,6 +20,8 @@ #include "global.h" #include "dolphindebug.h" +#include "dolphin_generalsettings.h" + QList<QUrl> Dolphin::validateUris(const QStringList& uriList) { QList<QUrl> urls; @@ -33,3 +35,8 @@ QList<QUrl> Dolphin::validateUris(const QStringList& uriList) } return urls; } + +QUrl Dolphin::homeUrl() +{ + return QUrl::fromUserInput(GeneralSettings::homeUrl(), QString(), QUrl::AssumeLocalFile); +} |
