mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-28 02:50:30 +00:00
catch delete
This commit is contained in:
parent
c8507b4c28
commit
c6ff9e43b7
@ -52,6 +52,7 @@ class GTKConfig(gtk.Dialog):
|
|||||||
|
|
||||||
self.connect('response', self.ok)
|
self.connect('response', self.ok)
|
||||||
self.connect('close', self.cancel)
|
self.connect('close', self.cancel)
|
||||||
|
self.connect("delete_event", self.cancel)
|
||||||
|
|
||||||
self.hide_all()
|
self.hide_all()
|
||||||
|
|
||||||
@ -71,8 +72,10 @@ class GTKConfig(gtk.Dialog):
|
|||||||
self.plugin.setconfig(url, los, ltype)
|
self.plugin.setconfig(url, los, ltype)
|
||||||
|
|
||||||
|
|
||||||
def cancel(self, dialog):
|
def cancel(self, dialog, signal=None):
|
||||||
self.hide_all()
|
self.hide_all()
|
||||||
|
if signal:
|
||||||
|
return True
|
||||||
|
|
||||||
def start(self, ltype, url, load, window):
|
def start(self, ltype, url, load, window):
|
||||||
self.set_transient_for(window)
|
self.set_transient_for(window)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user