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
This commit is contained in:
Kai Uwe Broulik 2017-01-16 15:45:09 +01:00
parent 63a591f32a
commit 215bed085b

View file

@ -361,6 +361,9 @@ QString DolphinViewContainer::placesText() const
if (text.isEmpty()) {
text = url().host();
}
if (text.isEmpty()) {
text = url().scheme();
}
}
return text;