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
commit acf2ad2f0c

View file

@ -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()