From 982fd4f29208b4899382bc76e4855305c4aaadbe Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 23 Jun 2008 06:35:23 +0000 Subject: [PATCH] Fix showing of Queued Torrents dialog when in classic mode --- deluge/core/torrent.py | 7 ++++++- deluge/ui/gtkui/queuedtorrents.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 3e56d4dcf..a78326c9b 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -82,7 +82,12 @@ class Torrent: # We need to keep track if the torrent is finished in the state to prevent # some weird things on state load. self.is_finished = False - + + # Queueing options + self.stop_at_ratio = False + self.stop_ratio = 2.00 + self.remove_at_ratio = False + # Load values from state if we have it if state is not None: # This is for saving the total uploaded between sessions diff --git a/deluge/ui/gtkui/queuedtorrents.py b/deluge/ui/gtkui/queuedtorrents.py index 70d669838..af4fd75b9 100644 --- a/deluge/ui/gtkui/queuedtorrents.py +++ b/deluge/ui/gtkui/queuedtorrents.py @@ -81,7 +81,7 @@ class QueuedTorrents(component.Component): if len(self.queue) == 0: return - if self.config["autoadd_queued"]: + if self.config["autoadd_queued"] or self.config["classic_mode"]: self.on_button_add_clicked(None) return # Make sure status bar info is showing