mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 16:38:43 +00:00
Fix crash when removing multiple torrents
This commit is contained in:
parent
6e695d8410
commit
3611584b0b
2 changed files with 4 additions and 2 deletions
|
@ -8,6 +8,7 @@
|
||||||
* Replace & with & in the details tab to ensure there are no markup errors
|
* Replace & with & in the details tab to ensure there are no markup errors
|
||||||
* Consider 0 unlimited when displaying limits in the statusbar
|
* Consider 0 unlimited when displaying limits in the statusbar
|
||||||
* Fix adding torrents when not showing the add torrent dialog in Windows
|
* Fix adding torrents when not showing the add torrent dialog in Windows
|
||||||
|
* Fix crash when removing multiple torrents
|
||||||
|
|
||||||
==== Web ====
|
==== Web ====
|
||||||
* Fix #1046 changing auto managed via the details tab
|
* Fix #1046 changing auto managed via the details tab
|
||||||
|
|
|
@ -83,11 +83,12 @@ class RemoveTorrentDialog(object):
|
||||||
button_data.set_label(pluralize_torrents(button_data.get_label()))
|
button_data.set_label(pluralize_torrents(button_data.get_label()))
|
||||||
|
|
||||||
def __remove_torrents(self, remove_data):
|
def __remove_torrents(self, remove_data):
|
||||||
for torrent_id in self.__torrent_ids:
|
|
||||||
client.core.remove_torrent(torrent_id, remove_data)
|
|
||||||
# Unselect all to avoid issues with the selection changed event
|
# Unselect all to avoid issues with the selection changed event
|
||||||
component.get("TorrentView").treeview.get_selection().unselect_all()
|
component.get("TorrentView").treeview.get_selection().unselect_all()
|
||||||
|
|
||||||
|
for torrent_id in self.__torrent_ids:
|
||||||
|
client.core.remove_torrent(torrent_id, remove_data)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""
|
"""
|
||||||
Shows the dialog and awaits for user input. The user can select to
|
Shows the dialog and awaits for user input. The user can select to
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue