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
1dcd6ee5e7
commit
d788d497aa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user