1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-16 19:14:06 +02:00

Merge pull request #103 from nowrep/master

FdoNotifyPlugin: Fixed showing notifications with & character
This commit is contained in:
Jeff Mitchell
2012-06-30 14:00:36 -07:00
parent 98bd7b1857
commit 85d9755a47

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" );