aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-event.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-event.c')
-rw-r--r--e-util/e-event.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/e-util/e-event.c b/e-util/e-event.c
index 9510a6ce74..e02cee4829 100644
--- a/e-util/e-event.c
+++ b/e-util/e-event.c
@@ -260,7 +260,10 @@ e_event_emit(EEvent *emp, const char *id, EEventTarget *target)
d(printf("emit event %s\n", id));
- g_assert(emp->target == NULL);
+ if(emp->target == NULL){
+ g_warning ("Event already in progress.\n");
+ return;
+ }
emp->target = target;
events = p->sorted;