┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2017-01-16 15:45:09 +0100
committerKai Uwe Broulik <[email protected]>2017-01-16 15:45:09 +0100
commit215bed085b99274cb3cc57670f4a76d0d43c4603 (patch)
tree6fd21c52a9d3d0e9e78d9b77180a76b85034efb2
parent63a591f32a56cb4caac9a616d21fab0f37c8d827 (diff)
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
-rw-r--r--src/dolphinviewcontainer.cpp3
1 files changed, 3 insertions, 0 deletions
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;