From 215bed085b99274cb3cc57670f4a76d0d43c4603 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 16 Jan 2017 15:45:09 +0100 Subject: In doubt use URL scheme for place If we neither have a filename nor a host, we might be in a foo:/ URL, use the scheme then. Differential Revision: https://phabricator.kde.org/D3935 --- src/dolphinviewcontainer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dolphinviewcontainer.cpp') diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 4e625c7d8..2ea5b7e00 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -361,6 +361,9 @@ QString DolphinViewContainer::placesText() const if (text.isEmpty()) { text = url().host(); } + if (text.isEmpty()) { + text = url().scheme(); + } } return text; -- cgit v1.3