[evolution/express2: 3/3] don't setup the watch cursor if we have no attendees.



commit 0907ec8130c5f2dc90f6d03e9575425aa8010f45
Author: Michael Meeks <michael meeks novell com>
Date:   Mon May 10 15:55:15 2010 +0100

    don't setup the watch cursor if we have no attendees.

 calendar/gui/e-meeting-time-sel.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c
index 72f531b..dd3f49d 100644
--- a/calendar/gui/e-meeting-time-sel.c
+++ b/calendar/gui/e-meeting-time-sel.c
@@ -1420,6 +1420,10 @@ e_meeting_time_selector_refresh_free_busy (EMeetingTimeSelector *mts, gint row,
 	GdkCursor *cursor;
 	GdkWindow *window;
 
+	/* nothing to refresh, lets not leak a busy cursor */
+	if (e_meeting_store_count_actual_attendees (mts->model) <= 0)
+		return;
+
 	start = mts->meeting_start_time;
 	g_date_subtract_days (&start.date, E_MEETING_TIME_SELECTOR_FB_DAYS_BEFORE);
 	start.hour = 0;



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