From f0ba87c28eb1474a8f5fb5d4e6eb696bd5b00563 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 13 Jun 2007 05:36:51 +0000 Subject: [PATCH] fix crash --- src/interface.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/interface.py b/src/interface.py index 2aeb6d7f1..9de1281c2 100644 --- a/src/interface.py +++ b/src/interface.py @@ -796,10 +796,11 @@ class DelugeGTK: new_file_info = self.manager.get_torrent_file_info(unique_id) - iter = self.file_store.get_iter_root() + iter = self.file_store.get_iter_first() for file in new_file_info: - self.file_store.set_value(iter, 4, round(file['progress'],2)) - iter = self.file_store.iter_next(iter) + if iter != None: + self.file_store.set_value(iter, 4, round(file['progress'],2)) + iter = self.file_store.iter_next(iter) return True