Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/journal/listview.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/jarabe/journal/listview.py')
-rw-r--r--src/jarabe/journal/listview.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py
index 8875f4c..8bd6a02 100644
--- a/src/jarabe/journal/listview.py
+++ b/src/jarabe/journal/listview.py
@@ -431,6 +431,8 @@ class BaseListView(gtk.Bin):
logging.debug('ListView.update_dates')
path, end_path = visible_range
+ tree_model = self.tree_view.get_model()
+
while True:
x, y, width, height = self.tree_view.get_cell_area(path,
self.date_column)
@@ -439,8 +441,8 @@ class BaseListView(gtk.Bin):
if path == end_path:
break
else:
- next_iter = self._model.iter_next(self._model.get_iter(path))
- path = self._model.get_path(next_iter)
+ next_iter = tree_model.iter_next(tree_model.get_iter(path))
+ path = tree_model.get_path(next_iter)
def _set_dirty(self):
if self._fully_obscured: