aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/empathy-event-manager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 35d71f943..bf3a48a8a 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -241,7 +241,9 @@ event_manager_add (EmpathyEventManager *manager,
if (!display_notify_area ())
{
/* Don't fire the 'event-added' signal as we activate the event now */
- approval->auto_approved = TRUE;
+ if (approval != NULL)
+ approval->auto_approved = TRUE;
+
empathy_event_activate (&event->public);
return;
}