Create an error if SystemTray backend is used and no tray icon avalible.

This commit is contained in:
Patrick von Reth 2015-08-25 22:35:53 +02:00
parent 530574865c
commit 7c44aa6c8e
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ void TrayIconNotifer::slotNotify(Notification notification)
if (icon) {
m_notificationQue.append(notification);
displayNotification(icon);
} else {
closeNotification(notification, Notification::CLOSED);
setErrorString(QLatin1String("No tray-icon hint provided for ") + notification.application().name());
}
}