From 7415061fde1f38cf65d6dc31b6e2f56e821a1e36 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 10 Jul 2008 08:33:19 +0000 Subject: [PATCH] Fix 'always show add torrent dialog' when using classic mode --- deluge/ui/gtkui/queuedtorrents.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/queuedtorrents.py b/deluge/ui/gtkui/queuedtorrents.py index af4fd75b9..7b10b330b 100644 --- a/deluge/ui/gtkui/queuedtorrents.py +++ b/deluge/ui/gtkui/queuedtorrents.py @@ -168,7 +168,11 @@ class QueuedTorrents(component.Component): # Add all the torrents in the liststore def add_torrent(model, path, iter, data): torrent_path = model.get_value(iter, 1) - client.add_torrent_file([torrent_path]) + if self.config["interactive_add"]: + component.get("AddTorrentDialog").add_from_files([torrent_path]) + component.get("AddTorrentDialog").show(self.config["focus_add_dialog"]) + else: + client.add_torrent_file([torrent_path]) self.liststore.foreach(add_torrent, None) del self.queue[:]