From 6e612fa9dd7575db2a110f53f926038615b9cd5a Mon Sep 17 00:00:00 2001 From: nowrep Date: Sat, 30 Jun 2012 21:44:21 +0200 Subject: [PATCH] FdoNotifyPlugin: Fixed showing notifications with & character --- src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp b/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp index 44be76c35..0f71eca18 100644 --- a/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp +++ b/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp @@ -109,7 +109,7 @@ FdoNotifyPlugin::notifyUser( const QString &messageText ) arguments << quint32( 0 ); //notification_id arguments << QString(); //app_icon arguments << QString( "Tomahawk" ); //summary - arguments << messageText; //body + arguments << messageText.replace("&", "&"); //body arguments << QStringList(); //actions QVariantMap dict; dict["desktop-entry"] = QString( "tomahawk" ); @@ -150,7 +150,7 @@ FdoNotifyPlugin::nowPlaying( const QVariant &input ) arguments << m_nowPlayingId; //notification_id arguments << QString(); //app_icon arguments << QString( "Tomahawk" ); //summary - arguments << messageText; //body + arguments << messageText.replace("&", "&"); //body arguments << QStringList(); //actions QVariantMap dict; dict["desktop-entry"] = QString( "tomahawk" );