]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
SVN_SILENT Added newline at EOF.
[dolphin.git] / src / dolphinmainwindow.cpp
index f623d5eba8cd78014d84a6c35a330cd88bd53aa6..92c0cfc80a5051dd91d80f1fde7dc34c38b27a62 100644 (file)
@@ -1343,6 +1343,10 @@ QString DolphinMainWindow::tabName(const KUrl& url) const
         name = url.fileName();
         if (name.isEmpty()) {
             name = url.protocol();
+        } else {
+            // Make sure that a '&' inside the directory name is displayed correctly
+            // and not misinterpreted as a keyboard shortcut in QTabBar::setTabText()
+            name.replace('&', "&&");
         }
     }
     return name;