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,8 +796,9 @@ class DelugeGTK:
new_file_info = self.manager.get_torrent_file_info(unique_id) 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: for file in new_file_info:
if iter != None:
self.file_store.set_value(iter, 4, round(file['progress'],2)) self.file_store.set_value(iter, 4, round(file['progress'],2))
iter = self.file_store.iter_next(iter) iter = self.file_store.iter_next(iter)