fix crash

This commit is contained in:
Marcos Pinto 2007-06-13 05:36:51 +00:00
parent 96cc172ae1
commit f0ba87c28e
1 changed files with 4 additions and 3 deletions

View File

@ -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