diff options
Diffstat (limited to 'src/empathy-status-icon.c')
-rw-r--r-- | src/empathy-status-icon.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index 6635b91be..a1d3704ea 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -92,11 +92,18 @@ status_icon_notification_closed_cb (NotifyNotification *notification, priv->notification = NULL; } + if (!priv->event) { + return; + } + /* the notification has been closed by the user, see the * DesktopNotification spec. */ - if (reason == 2 && priv->event) { + if (reason == 2) { g_idle_add ((GSourceFunc) activate_event, priv->event); + } else { + /* inhibit other updates for this event */ + empathy_event_inhibit_updates (priv->event); } } |