mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 20:14:51 +00:00
catch delete
This commit is contained in:
parent
c8507b4c28
commit
c6ff9e43b7
1 changed files with 4 additions and 1 deletions
|
@ -52,6 +52,7 @@ class GTKConfig(gtk.Dialog):
|
|||
|
||||
self.connect('response', self.ok)
|
||||
self.connect('close', self.cancel)
|
||||
self.connect("delete_event", self.cancel)
|
||||
|
||||
self.hide_all()
|
||||
|
||||
|
@ -71,8 +72,10 @@ class GTKConfig(gtk.Dialog):
|
|||
self.plugin.setconfig(url, los, ltype)
|
||||
|
||||
|
||||
def cancel(self, dialog):
|
||||
def cancel(self, dialog, signal=None):
|
||||
self.hide_all()
|
||||
if signal:
|
||||
return True
|
||||
|
||||
def start(self, ltype, url, load, window):
|
||||
self.set_transient_for(window)
|
||||
|
|
Loading…
Add table
Reference in a new issue