From 9ac2b850681dd4936e18b7688d1240bac42a4749 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 6 Nov 2007 04:09:40 +0000 Subject: [PATCH] fix queue in force recheck --- src/interface.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/interface.py b/src/interface.py index cb58ba1f2..ef52db8cf 100644 --- a/src/interface.py +++ b/src/interface.py @@ -782,11 +782,16 @@ trying to create \"%s\"\nPlease make sure you have the write permissions and the pass torrent_state = self.manager.get_torrent_state(unique_ID) current_order = torrent_state['queue_pos'] - while current_order != save_info[2]: - if current_order > save_info[2]: + if current_order > save_info[2]: + diff = current_order - save_info[2] + for x in range(diff): self.manager.queue_up(unique_ID) - else: + self.update() + else: + diff = save_info[2] - current_order + for x in range(diff): self.manager.queue_down(unique_ID) + self.update() os.remove(save_info[0]) def tor_start(self, widget):