diff --git a/src/core.py b/src/core.py index 315169fa7..dd12dafde 100644 --- a/src/core.py +++ b/src/core.py @@ -724,8 +724,8 @@ class Manager: def get_num_torrents(self): return deluge_core.get_num_torrents() - def get_unique_IDs(self): - return self.unique_IDs.keys() + def get_queue(self): + return self.state.queue def update_tracker(self, unique_ID): deluge_core.reannounce(unique_ID) diff --git a/src/interface.py b/src/interface.py index 10d885f92..72a4b9b74 100644 --- a/src/interface.py +++ b/src/interface.py @@ -821,8 +821,8 @@ class DelugeGTK: print "Showing window" self.window.show() - ## add torrents in manager to interface - for unique_id in self.manager.get_unique_IDs(): + ## add torrents in manager's queue to interface + for unique_id in self.manager.get_queue(): self.torrent_model_append(unique_id) for torrent_file in cmd_line_torrents: