From 0c4f08afdff97b4d922f52b861cf0e9c6111686e Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 13 Jun 2007 06:06:46 +0000 Subject: [PATCH] check if update is necessary first --- src/interface.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/interface.py b/src/interface.py index 9de1281c2..e0ddb5c8e 100644 --- a/src/interface.py +++ b/src/interface.py @@ -799,8 +799,9 @@ class DelugeGTK: iter = self.file_store.get_iter_first() for file in new_file_info: if iter != None: - self.file_store.set_value(iter, 4, round(file['progress'],2)) - iter = self.file_store.iter_next(iter) + 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)) + iter = self.file_store.iter_next(iter) return True