1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-01 14:42:25 +02:00

FdoNotifyPlugin: Fixed showing notifications with & character

This commit is contained in:
nowrep 2012-06-30 21:44:21 +02:00
parent 67e18c3b9d
commit 6e612fa9dd

View File

@ -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("&", "&amp;"); //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("&", "&amp;"); //body
arguments << QStringList(); //actions
QVariantMap dict;
dict["desktop-entry"] = QString( "tomahawk" );