From 5dd5eaf08da4b7d11e53c90096c2ea0e6a19e840 Mon Sep 17 00:00:00 2001 From: Emmanuel Pescosta Date: Sat, 10 Oct 2015 15:09:48 +0200 Subject: 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 --- src/global.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/global.cpp') 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 Dolphin::validateUris(const QStringList& uriList) { QList urls; @@ -33,3 +35,8 @@ QList Dolphin::validateUris(const QStringList& uriList) } return urls; } + +QUrl Dolphin::homeUrl() +{ + return QUrl::fromUserInput(GeneralSettings::homeUrl(), QString(), QUrl::AssumeLocalFile); +} -- cgit v1.3