mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix the remove with data checkbox not working in gtkui
This commit is contained in:
parent
59f82f204f
commit
acf2ad2f0c
1 changed files with 4 additions and 6 deletions
|
@ -100,13 +100,11 @@ class RemoveTorrentDialog(object):
|
||||||
remove the torrent(s) from the session with or without their data.
|
remove the torrent(s) from the session with or without their data.
|
||||||
"""
|
"""
|
||||||
# Response IDs from the buttons
|
# Response IDs from the buttons
|
||||||
RESPONSE_SESSION = 1
|
RESPONSE_CANCEL = 0
|
||||||
RESPONSE_DATA = 2
|
RESPONSE_OK = 1
|
||||||
|
|
||||||
response = self.__dialog.run()
|
response = self.__dialog.run()
|
||||||
if response == RESPONSE_SESSION:
|
if response == RESPONSE_OK:
|
||||||
self.__remove_torrents(False)
|
self.__remove_torrents(self.builder.get_object("delete_files").get_active())
|
||||||
elif response == RESPONSE_DATA:
|
|
||||||
self.__remove_torrents(True)
|
|
||||||
|
|
||||||
self.__dialog.destroy()
|
self.__dialog.destroy()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue