Fix the remove with data checkbox not working in gtkui

This commit is contained in:
Chase Sterling 2014-08-03 21:06:12 -04:00
parent 59f82f204f
commit acf2ad2f0c
1 changed files with 4 additions and 6 deletions

View File

@ -100,13 +100,11 @@ class RemoveTorrentDialog(object):
remove the torrent(s) from the session with or without their data.
"""
# Response IDs from the buttons
RESPONSE_SESSION = 1
RESPONSE_DATA = 2
RESPONSE_CANCEL = 0
RESPONSE_OK = 1
response = self.__dialog.run()
if response == RESPONSE_SESSION:
self.__remove_torrents(False)
elif response == RESPONSE_DATA:
self.__remove_torrents(True)
if response == RESPONSE_OK:
self.__remove_torrents(self.builder.get_object("delete_files").get_active())
self.__dialog.destroy()