check if update is necessary first

This commit is contained in:
Marcos Pinto 2007-06-13 06:06:46 +00:00
parent f0ba87c28e
commit 0c4f08afdf
1 changed files with 3 additions and 2 deletions

View File

@ -799,6 +799,7 @@ class DelugeGTK:
iter = self.file_store.get_iter_first() iter = self.file_store.get_iter_first()
for file in new_file_info: for file in new_file_info:
if iter != None: if iter != None:
if round(self.file_store.get_value(iter, 4),2) != round(file['progress'],2):
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)