diff options
Diffstat (limited to 'calendar/gui/e-week-view-event-item.c')
-rw-r--r-- | calendar/gui/e-week-view-event-item.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c index 749bcbad65..741ec913f5 100644 --- a/calendar/gui/e-week-view-event-item.c +++ b/calendar/gui/e-week-view-event-item.c @@ -856,6 +856,7 @@ e_week_view_event_item_double_click (EWeekViewEventItem *wveitem, EWeekView *week_view; EWeekViewEvent *event; GnomeCanvasItem *item; + GnomeCalendar *calendar; item = GNOME_CANVAS_ITEM (wveitem); @@ -867,8 +868,9 @@ e_week_view_event_item_double_click (EWeekViewEventItem *wveitem, e_week_view_stop_editing_event (week_view); - if (week_view->calendar) - gnome_calendar_edit_object (week_view->calendar, event->comp, FALSE); + calendar = e_cal_view_get_calendar (E_CAL_VIEW (week_view)); + if (calendar) + gnome_calendar_edit_object (calendar, event->comp, FALSE); else g_warning ("Calendar not set"); |