diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 3 | ||||
-rw-r--r-- | calendar/gui/calendar-component.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 71b23af741..2ffd29ef11 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,8 @@ 2004-01-15 Radek Doulik <rodo@ximian.com> + * gui/calendar-component.c (create_new_event): test priv->calendar + is not NULL before getting current view + * gui/tasks-component.c (primary_source_selection_changed_cb): reset create_ecal diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index e0452088a6..19fe36ff17 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -785,8 +785,7 @@ create_new_event (CalendarComponent *calendar_component, gboolean is_allday, gbo if (!e_cal_is_read_only (priv->create_ecal, &read_only, NULL) || read_only) return; - view = E_CALENDAR_VIEW (gnome_calendar_get_current_view_widget (priv->calendar)); - if (view) + if (priv->calendar && (view = E_CALENDAR_VIEW (gnome_calendar_get_current_view_widget (priv->calendar)))) e_calendar_view_new_appointment_full (view, is_allday, is_meeting); else { ECalComponent *comp; |