aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-10-17 13:02:50 +0800
committerBharath Acharya <abharath@src.gnome.org>2008-10-17 13:02:50 +0800
commitce3f11f877fc4a9b0f752cde838718aaaa5c96af (patch)
tree56d123d86c9101638ee5cb936e49d0ac983f24cf /calendar
parent9c86738d96fdf98b6d8ed6168d787c571c922151 (diff)
downloadgsoc2013-evolution-ce3f11f877fc4a9b0f752cde838718aaaa5c96af.tar.gz
gsoc2013-evolution-ce3f11f877fc4a9b0f752cde838718aaaa5c96af.tar.zst
gsoc2013-evolution-ce3f11f877fc4a9b0f752cde838718aaaa5c96af.zip
** Fix for bug #553609
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. svn path=/trunk/; revision=36627
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-week-view.c5
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. */