[gnome-dvb-daemon] Fixed retrieving iter pointing to start of previous day in ScheduleStore



commit b3c00a1c4d30629e5c04d5279a9d8c87e7a6eb5c
Author: Sebastian PÃlsterl <sebp k-d-w org>
Date:   Mon Aug 15 11:54:08 2011 +0200

    Fixed retrieving iter pointing to start of previous day in ScheduleStore

 client/gnomedvb/ui/widgets/ScheduleStore.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/client/gnomedvb/ui/widgets/ScheduleStore.py b/client/gnomedvb/ui/widgets/ScheduleStore.py
index 342dead..5f792a8 100644
--- a/client/gnomedvb/ui/widgets/ScheduleStore.py
+++ b/client/gnomedvb/ui/widgets/ScheduleStore.py
@@ -146,7 +146,6 @@ class ScheduleStore(Gtk.ListStore):
         day_seen = 0
         
         root = Gtk.TreePath("0")
-        
         while path0 != root:
             aiter = self.get_iter(path0)
             row = self[aiter]
@@ -154,7 +153,7 @@ class ScheduleStore(Gtk.ListStore):
                 day_seen += 1
                 if day_seen == 2:
                     return row.iter
-            path0 = path0.prev()
+            path0.prev()
         
         return None
 



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