X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fstatusnotifieritem.cpp;h=df04252b31d428e38e61837ef571a2dcba85b4d0;hb=9af0ba528b44515b902a57ac24372dceef58bb44;hp=ecfe56460a171b1dfd9e3709d078fb5f905e904e;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce;p=quassel.git diff --git a/src/qtui/statusnotifieritem.cpp b/src/qtui/statusnotifieritem.cpp index ecfe5646..df04252b 100644 --- a/src/qtui/statusnotifieritem.cpp +++ b/src/qtui/statusnotifieritem.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2012 by the Quassel Project * + * Copyright (C) 2005-2014 by the Quassel Project * * devel@quassel-irc.org * * * * This contains code from KStatusNotifierItem, part of the KDE libs * @@ -18,7 +18,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifdef HAVE_DBUS @@ -314,7 +314,11 @@ void StatusNotifierItem::showMessage(const QString &title, const QString &messag QString message = message_; if (_notificationsClient->isValid()) { if (_notificationsClientSupportsMarkup) +#if QT_VERSION < 0x050000 message = Qt::escape(message); +#else + message = message.toHtmlEscaped(); +#endif QStringList actions; if (_notificationsClientSupportsActions)