Fixed a crash in the processing of the notification queue
This commit is contained in:
parent
b1f2f1929d
commit
5afad635c3
|
@ -112,14 +112,16 @@ void SnoreNotifier::slotProcessQueue()
|
|||
{
|
||||
foreach (NotifyWidget *w, m_widgets)
|
||||
{
|
||||
bool free = false;
|
||||
if(w->acquire())
|
||||
{
|
||||
Notification notification = m_queue.takeFirst();
|
||||
w->display(notification);
|
||||
notification.hints().setPrivateValue(this, "id", w->id());
|
||||
startTimeout(notification);
|
||||
free = true;
|
||||
if(m_queue.isEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue