From 5d1dbc98e54c32c7358096a3f689c72de5d79519 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 20 Jan 2008 02:37:26 +0000 Subject: [PATCH] Give the Queue plugin some love. --- deluge/core/torrent.py | 2 +- deluge/plugins/queue/queue/gtkui.py | 2 +- deluge/ui/gtkui/torrentview.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 7b5f7f9f9..751da9d77 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -225,7 +225,7 @@ class Torrent: self.torrent_info = None # Create the desired status dictionary and return it - status_dict = {}.fromkeys(keys) + status_dict = {} if len(keys) == 0: status_dict = full_status diff --git a/deluge/plugins/queue/queue/gtkui.py b/deluge/plugins/queue/queue/gtkui.py index 60e93293e..fb6a7bf1a 100644 --- a/deluge/plugins/queue/queue/gtkui.py +++ b/deluge/plugins/queue/queue/gtkui.py @@ -116,4 +116,4 @@ class GtkUI(ui.UI): self.plugin.remove_preferences_page("Queue") def update(self): - self.plugin.update_torrent_view(["#"]) + self.plugin.update_torrent_view() diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py index c1a40bb8e..da4ce2cd8 100644 --- a/deluge/ui/gtkui/torrentview.py +++ b/deluge/ui/gtkui/torrentview.py @@ -239,7 +239,7 @@ class TorrentView(listview.ListView, component.Component): # Remove duplicates from status_key list status_keys = list(set(status_keys)) - + # Create list of torrent_ids in need of status updates torrent_ids = [] row = self.liststore.get_iter_first()