From acf2ad2f0c8c5bf3c455b474437a3c06e705ea42 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Sun, 3 Aug 2014 21:06:12 -0400 Subject: [PATCH] Fix the remove with data checkbox not working in gtkui --- deluge/ui/gtkui/removetorrentdialog.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/deluge/ui/gtkui/removetorrentdialog.py b/deluge/ui/gtkui/removetorrentdialog.py index 7ad018aa5..00e1c59f5 100644 --- a/deluge/ui/gtkui/removetorrentdialog.py +++ b/deluge/ui/gtkui/removetorrentdialog.py @@ -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()