]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphintabwidget.cpp
Fix for crash which was introduced by commit
[dolphin.git] / src / dolphintabwidget.cpp
index b38cd5146140e51eec3ca9847a8662cd24b6b42d..a0c9b9d8198269bcf9c560106332cdf0dd9b45a7 100644 (file)
@@ -348,7 +348,7 @@ QString DolphinTabWidget::tabName(const QUrl& url) const
     if (url == QUrl("file:///")) {
         name = '/';
     } else {
-        name = url.fileName();
+        name = url.adjusted(QUrl::StripTrailingSlash).fileName();
         if (name.isEmpty()) {
             name = url.scheme();
         } else {