From e287e3ec3363e84df0b3e6048a5cbcc9fd304de0 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 28 Feb 2009 01:48:41 +0000 Subject: [PATCH] Fix #655 issue where default torrent options wouldn't be set for new torrents added to the addtorrentdialog --- deluge/ui/gtkui/addtorrentdialog.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py index 334db5b1f..b25b573d8 100644 --- a/deluge/ui/gtkui/addtorrentdialog.py +++ b/deluge/ui/gtkui/addtorrentdialog.py @@ -190,6 +190,9 @@ class AddTorrentDialog(component.Component): [info.info_hash, info.name, filename]) self.files[info.info_hash] = info.files self.infos[info.info_hash] = info.metadata + self.listview_torrents.get_selection().select_iter(new_row) + + self.set_default_options() self.save_torrent_options(new_row) (model, row) = self.listview_torrents.get_selection().get_selected() @@ -215,6 +218,8 @@ class AddTorrentDialog(component.Component): [info_hash, name, uri]) self.files[info_hash] = [] self.infos[info_hash] = None + self.listview_torrents.get_selection().select_iter(new_row) + self.set_default_options() self.save_torrent_options(new_row) (model, row) = self.listview_torrents.get_selection().get_selected()