Skip to content

Commit

Permalink
Fix the problem with displaying ampersand character in the entry remo…
Browse files Browse the repository at this point in the history
…val dialog
  • Loading branch information
sewe2000 committed May 14, 2023
1 parent 60b177f commit 43e7e8d
Show file tree
Hide file tree
Showing 3 changed files with 4 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());
} 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());
} else {
prompt = QObject::tr("Do you really want to move %n entry(s) to the recycle bin?", "", entries.size());
}
Expand Down
1 change: 1 addition & 0 deletions src/gui/MessageBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
QWindow* MessageBox::m_overrideParent(nullptr);

MessageBox::Button MessageBox::m_nextAnswer(MessageBox::NoButton);
Qt::TextFormat MessageBox::textFormat = Qt::PlainText;

QHash<QAbstractButton*, MessageBox::Button> MessageBox::m_addedButtonLookup =
QHash<QAbstractButton*, MessageBox::Button>();
Expand Down
1 change: 1 addition & 0 deletions src/gui/MessageBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class MessageBox
QCheckBox* checkbox = nullptr);

static QString stdButtonText(QMessageBox::StandardButton button);
static Qt::TextFormat textFormat;
};

#endif // KEEPASSX_MESSAGEBOX_H

0 comments on commit 43e7e8d

Please sign in to comment.