diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/e-week-view.c | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 18827fca92..4c018639e0 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,12 @@ 2008-10-17 Milan Crha <mcrha@redhat.com> + ** Fix for bug #553609 + + * gui/e-week-view.c: (e_week_view_set_selected_time_range): + Do not do any changes when the view has not been shown yet. + +2008-10-17 Milan Crha <mcrha@redhat.com> + ** Fix for bug #530872 * gui/e-calendar-table.c: (e_calendar_table_on_open_task): diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index 621c28bdf8..5e9a88c782 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -1403,6 +1403,11 @@ e_week_view_set_selected_time_range (ECalendarView *cal_view, g_return_if_fail (E_IS_WEEK_VIEW (week_view)); + if (!g_date_valid (&week_view->base_date)) { + /* This view has not been initialized/shown yet, thus skip this. */ + return; + } + time_to_gdate_with_zone (&date, start_time, e_calendar_view_get_timezone (E_CALENDAR_VIEW (week_view))); /* Set the selection to the given days. */ |