fixed snarl icons

This commit is contained in:
TheOneRing 2010-03-24 16:32:27 +01:00
parent f553d99c04
commit 902ebb6393
2 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,8 @@ QString Notification::toSnalrString()const{
out+=QString("#?app="+app);
if(!alert.isEmpty())
out+=QString("#?class="+alert);
if(hints.contains("SnarlIcon"))
out+=QString("#?icon="+hints.value("SnarlIcon").value<QString>());
out+=QString("#?title="+title+"#?text="+text+"#?timeout="+QString::number(timeout));
return out;
}

View File

@ -87,6 +87,7 @@ SnarlNotification Parser::parse(QString &msg,QTcpSocket* client){
sNotification.notification->text=value;
break;
case ICON:
sNotification.notification->hints.insert("SnarlIcon",value);
sNotification.notification->setIcon(downloadIcon(value));
break;
case CLASS: