]> cloud.milkyroute.net Git - dolphin.git/commitdiff
In doubt use URL scheme for place
authorKai Uwe Broulik <kde@privat.broulik.de>
Mon, 16 Jan 2017 14:45:09 +0000 (15:45 +0100)
committerKai Uwe Broulik <kde@privat.broulik.de>
Mon, 16 Jan 2017 14:45:09 +0000 (15:45 +0100)
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

index 4e625c7d8ee4ddd69e2f9b41c1e1fe0ee7483627..2ea5b7e00e4e28e19d2bf70f377fb1cefd46c568 100644 (file)
@@ -361,6 +361,9 @@ QString DolphinViewContainer::placesText() const
         if (text.isEmpty()) {
             text = url().host();
         }
+        if (text.isEmpty()) {
+            text = url().scheme();
+        }
     }
 
     return text;