Fix urgency level in freedesktop notifications.

This commit is contained in:
Patrick von Reth 2015-08-27 18:37:32 +02:00
parent 9057d1735f
commit 4685c7fe21
1 changed files with 3 additions and 3 deletions

View File

@ -57,11 +57,11 @@ void FreedesktopBackend::slotNotify(Notification noti)
hints.insert(QLatin1String("image_data"), QVariant::fromValue(image));
}
char urgency = '1';
char urgency = 1;
if (noti.priority() < 0) {
urgency = '0';
urgency = 0;
} else if (noti.priority() > 2) {
urgency = '2';
urgency = 2;
}
hints.insert(QLatin1String("urgency"), urgency);