From 7c058e3c639032d0e64c8cbcfa7a973f98ac28b6 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 19 Jul 2013 15:55:56 +0200 Subject: [PATCH] Trivial fix: escape ampersands in file names before pushing to tab header (#8757) --- src/frontends/qt4/GuiWorkArea.cpp | 2 +- status.20x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index 049831d58d..7e4a774d08 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -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); diff --git a/status.20x b/status.20x index 8d6624e2de..b8e196cf5c 100644 --- a/status.20x +++ b/status.20x @@ -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 -- 2.39.5