diff options
| author | Peter Penz <[email protected]> | 2009-01-31 11:08:08 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-01-31 11:08:08 +0000 |
| commit | dc34436f23af03aa79b8c885aa3d96cf830b885e (patch) | |
| tree | 63873e94743b582a2367324f7874c47b91a66f87 /src/dolphinmainwindow.cpp | |
| parent | 1f3916a22254acd05054b40b52e24600d94a2429 (diff) | |
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
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |
