diff options
author | Andrew Resch <andrewresch@gmail.com> | 2009-01-22 06:01:34 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2009-01-22 06:01:34 +0000 |
commit | 6e778aadf59993f01433ee1ffb28f10cfe94f0e2 (patch) | |
tree | d723c281246b0d7f4562a2f931c6e1dc51827d5d | |
parent | 8249ad86ea05918c458446a7434ebfc6011dce2d (diff) | |
download | deluge-6e778aadf59993f01433ee1ffb28f10cfe94f0e2.tar.gz deluge-6e778aadf59993f01433ee1ffb28f10cfe94f0e2.tar.bz2 deluge-6e778aadf59993f01433ee1ffb28f10cfe94f0e2.zip |
Fix being able to select/deselect files in the add torrent dialog
-rw-r--r-- | deluge/ui/gtkui/addtorrentdialog.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py index d2eae7c2e..4dc3fcaf6 100644 --- a/deluge/ui/gtkui/addtorrentdialog.py +++ b/deluge/ui/gtkui/addtorrentdialog.py @@ -344,10 +344,11 @@ class AddTorrentDialog(component.Component): def save_torrent_options(self, row=None): # Keeps the torrent options dictionary up-to-date with what the user has # selected. - if row is None and self.previous_selected_torrent and self.torrent_liststore.iter_is_valid(self.previous_selected_torrent): - row = self.previous_selected_torrent - else: - return + if row is None: + if self.previous_selected_torrent and self.torrent_liststore.iter_is_valid(self.previous_selected_torrent): + row = self.previous_selected_torrent + else: + return torrent_id = self.torrent_liststore.get_value(row, 0) |