mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Trivial fix: escape ampersands in file names before pushing to tab header (#8757)
This commit is contained in:
parent
bc297cfd7a
commit
7c058e3c63
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user