diff options
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-day-view.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index e47cbed34b..65151e49a6 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -1234,7 +1234,10 @@ e_day_view_find_event_from_ico (EDayView *day_view, event_num++) { event = &g_array_index (day_view->events[day], EDayViewEvent, event_num); - if (event->ico == ico) { + //if (event->ico == ico) { + if (ico && ico->uid && + event && event->ico && event->ico->uid && + (strcmp (ico->uid, event->ico->uid) == 0)) { *day_return = day; *event_num_return = event_num; return TRUE; |