diff --git a/src/osd/osddbus.cpp b/src/osd/osddbus.cpp index d9f9baee3..66d758d4e 100644 --- a/src/osd/osddbus.cpp +++ b/src/osd/osddbus.cpp @@ -143,8 +143,8 @@ void OSDDBus::ShowMessageNative(const QString &summary, const QString &message, QVariantMap hints; QString summary_stripped = summary; QString message_stripped = message; - summary_stripped = summary_stripped.remove('&').simplified(); - message_stripped = message_stripped.remove('&').simplified(); + summary_stripped = summary_stripped.replace('&', "&").simplified(); + message_stripped = message_stripped.replace('&', "&").simplified(); if (!image.isNull()) { if (version_ >= QVersionNumber(1, 2)) {