mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-06 10:05:35 +00:00
Clean up remove dialog handling a bit more
This commit is contained in:
parent
acf2ad2f0c
commit
231c17f6a9
2 changed files with 3 additions and 9 deletions
|
@ -185,8 +185,8 @@
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<action-widgets>
|
<action-widgets>
|
||||||
<action-widget response="0">cancel_button</action-widget>
|
<action-widget response="-6">cancel_button</action-widget>
|
||||||
<action-widget response="1">ok_button</action-widget>
|
<action-widget response="-5">ok_button</action-widget>
|
||||||
</action-widgets>
|
</action-widgets>
|
||||||
</object>
|
</object>
|
||||||
</interface>
|
</interface>
|
||||||
|
|
|
@ -99,12 +99,6 @@ class RemoveTorrentDialog(object):
|
||||||
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
|
||||||
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
|
if self.__dialog.run() == gtk.RESPONSE_OK:
|
||||||
RESPONSE_CANCEL = 0
|
|
||||||
RESPONSE_OK = 1
|
|
||||||
|
|
||||||
response = self.__dialog.run()
|
|
||||||
if response == RESPONSE_OK:
|
|
||||||
self.__remove_torrents(self.builder.get_object("delete_files").get_active())
|
self.__remove_torrents(self.builder.get_object("delete_files").get_active())
|
||||||
|
|
||||||
self.__dialog.destroy()
|
self.__dialog.destroy()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue