From: Peter Penz Date: Sat, 31 Jan 2009 11:08:08 +0000 (+0000) Subject: Display correct folder names in tabs, if they contain a '&' character. Thanks to... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/dc34436f23af03aa79b8c885aa3d96cf830b885e 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 --- 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;