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
This commit is contained in:
Peter Penz 2009-01-31 11:08:08 +00:00
parent f84915ba9d
commit 6f172a9145

View 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;