Skip to content

Commit

Permalink
Fix displaying & in the entry removal msgbox
Browse files Browse the repository at this point in the history
  • Loading branch information
sewe2000 authored and droidmonkey committed Oct 24, 2023
1 parent 029b4c2 commit deebcad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/GuiTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace GuiTools
QString prompt;
if (entries.size() == 1) {
prompt = QObject::tr("Do you really want to delete the entry \"%1\" for good?")
.arg(entries.first()->title().toHtmlEscaped());
.arg(entries.first()->title().toHtmlEscaped().replace("&", "&"));
} else {
prompt = QObject::tr("Do you really want to delete %n entry(s) for good?", "", entries.size());
}
Expand All @@ -51,7 +51,7 @@ namespace GuiTools
QString prompt;
if (entries.size() == 1) {
prompt = QObject::tr("Do you really want to move entry \"%1\" to the recycle bin?")
.arg(entries.first()->title().toHtmlEscaped());
.arg(entries.first()->title().toHtmlEscaped().replace("&", "&"));
} else {
prompt = QObject::tr("Do you really want to move %n entry(s) to the recycle bin?", "", entries.size());
}
Expand Down

0 comments on commit deebcad

Please sign in to comment.