Trivial fix: escape ampersands in file names before pushing to tab header (#8757)

This commit is contained in:
Juergen Spitzmueller 2013-07-19 15:55:56 +02:00
parent 1dcd6ee5e7
commit d788d497aa

View File

@ -1980,7 +1980,7 @@ void TabWorkArea::updateTabTexts()
for (It it = paths.begin(); it != paths.end(); ++it) {
int const tab_index = it->tab();
Buffer const & buf = workArea(tab_index)->bufferView().buffer();
QString tab_text = it->displayString();
QString tab_text = it->displayString().replace("&", "&&");
if (!buf.fileName().empty() && !buf.isClean())
tab_text += "*";
setTabText(tab_index, tab_text);