mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix being able to select/deselect files in the add torrent dialog
This commit is contained in:
parent
85b1a86669
commit
71aebaffdf
1 changed files with 5 additions and 4 deletions
|
@ -344,10 +344,11 @@ class AddTorrentDialog(component.Component):
|
||||||
def save_torrent_options(self, row=None):
|
def save_torrent_options(self, row=None):
|
||||||
# Keeps the torrent options dictionary up-to-date with what the user has
|
# Keeps the torrent options dictionary up-to-date with what the user has
|
||||||
# selected.
|
# selected.
|
||||||
if row is None and self.previous_selected_torrent and self.torrent_liststore.iter_is_valid(self.previous_selected_torrent):
|
if row is None:
|
||||||
row = self.previous_selected_torrent
|
if self.previous_selected_torrent and self.torrent_liststore.iter_is_valid(self.previous_selected_torrent):
|
||||||
else:
|
row = self.previous_selected_torrent
|
||||||
return
|
else:
|
||||||
|
return
|
||||||
|
|
||||||
torrent_id = self.torrent_liststore.get_value(row, 0)
|
torrent_id = self.torrent_liststore.get_value(row, 0)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue