evolution r36628 - in branches/gnome-2-24/calendar: . gui



Author: abharath
Date: Fri Oct 17 05:03:48 2008
New Revision: 36628
URL: http://svn.gnome.org/viewvc/evolution?rev=36628&view=rev

Log:
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.


Modified:
   branches/gnome-2-24/calendar/ChangeLog
   branches/gnome-2-24/calendar/gui/e-week-view.c

Modified: branches/gnome-2-24/calendar/gui/e-week-view.c
==============================================================================
--- branches/gnome-2-24/calendar/gui/e-week-view.c	(original)
+++ branches/gnome-2-24/calendar/gui/e-week-view.c	Fri Oct 17 05:03:48 2008
@@ -1403,6 +1403,11 @@
 
 	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. */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]