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 bc297cfd7a
commit 7c058e3c63
2 changed files with 3 additions and 1 deletions

View File

@ -1907,7 +1907,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);

View File

@ -86,6 +86,8 @@ What's new
- Correctly detect python scripts required by the preview mechanism.
- Fix display of file names with apersands in the tab header (bug 8757).
* DOCUMENTATION AND LOCALIZATION