evolution r36627 - in trunk/calendar: . gui



Author: abharath
Date: Fri Oct 17 05:02:50 2008
New Revision: 36627
URL: http://svn.gnome.org/viewvc/evolution?rev=36627&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:
   trunk/calendar/ChangeLog
   trunk/calendar/gui/e-week-view.c

Modified: trunk/calendar/gui/e-week-view.c
==============================================================================
--- trunk/calendar/gui/e-week-view.c	(original)
+++ trunk/calendar/gui/e-week-view.c	Fri Oct 17 05:02:50 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]