Properly restore queue order on restart.

This commit is contained in:
Alex Dedul 2007-08-13 09:09:15 +00:00
parent aea7be5aa5
commit 3edd3280ae
2 changed files with 4 additions and 4 deletions

View File

@ -724,8 +724,8 @@ class Manager:
def get_num_torrents(self): def get_num_torrents(self):
return deluge_core.get_num_torrents() return deluge_core.get_num_torrents()
def get_unique_IDs(self): def get_queue(self):
return self.unique_IDs.keys() return self.state.queue
def update_tracker(self, unique_ID): def update_tracker(self, unique_ID):
deluge_core.reannounce(unique_ID) deluge_core.reannounce(unique_ID)

View File

@ -821,8 +821,8 @@ class DelugeGTK:
print "Showing window" print "Showing window"
self.window.show() self.window.show()
## add torrents in manager to interface ## add torrents in manager's queue to interface
for unique_id in self.manager.get_unique_IDs(): for unique_id in self.manager.get_queue():
self.torrent_model_append(unique_id) self.torrent_model_append(unique_id)
for torrent_file in cmd_line_torrents: for torrent_file in cmd_line_torrents: