[nanny] Fixed bug in ScheduleCalendar while dragging
- From: Cesar Garcia Tapia <ctapia src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nanny] Fixed bug in ScheduleCalendar while dragging
- Date: Tue, 16 Mar 2010 17:23:44 +0000 (UTC)
commit 664abbb68c7864b905dfb57a9c3da35035570919
Author: Cesar Garcia Tapia <cesar garcia tapia openshine com>
Date: Tue Mar 16 18:23:23 2010 +0100
Fixed bug in ScheduleCalendar while dragging
client/gnome/admin/src/ScheduleCalendar.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/client/gnome/admin/src/ScheduleCalendar.py b/client/gnome/admin/src/ScheduleCalendar.py
index dbbffdb..7bb7172 100644
--- a/client/gnome/admin/src/ScheduleCalendar.py
+++ b/client/gnome/admin/src/ScheduleCalendar.py
@@ -168,7 +168,10 @@ class ScheduleCalendar (gtk.EventBox):
self.schedule_data = copy.deepcopy (self.__origin_schedule_data)
for h in range (min_hour, max_hour+1):
for d in range (min_day, max_day+1):
- self.schedule_data[d][h] = self.__origin_value
+ try:
+ self.schedule_data[d][h] = self.__origin_value
+ except:
+ break
self.__reload ()
def __on_button_press_event (self, widget, event, data=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]