mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 08:51:24 +00:00
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:
parent
f84915ba9d
commit
6f172a9145
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue