From dc34436f23af03aa79b8c885aa3d96cf830b885e Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 31 Jan 2009 11:08:08 +0000 Subject: [PATCH] Display correct folder names in tabs, if they contain a '&' character. Thanks to Frank Reininghaus for the patch! BUG: 181765 svn path=/trunk/KDE/kdebase/apps/; revision=919021 --- src/dolphinmainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index f623d5eba..92c0cfc80 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -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; -- 2.47.3