Create an error if SystemTray backend is used and no tray icon avalible.
This commit is contained in:
parent
530574865c
commit
7c44aa6c8e
|
@ -24,6 +24,9 @@ void TrayIconNotifer::slotNotify(Notification notification)
|
||||||
if (icon) {
|
if (icon) {
|
||||||
m_notificationQue.append(notification);
|
m_notificationQue.append(notification);
|
||||||
displayNotification(icon);
|
displayNotification(icon);
|
||||||
|
} else {
|
||||||
|
closeNotification(notification, Notification::CLOSED);
|
||||||
|
setErrorString(QLatin1String("No tray-icon hint provided for ") + notification.application().name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue