use die instead of save_yourself and add arg to shutdown func
This commit is contained in:
parent
dbe41a3cd5
commit
dc60e26c59
@ -135,7 +135,7 @@ class DelugeGTK:
|
|||||||
try:
|
try:
|
||||||
import gnome.ui
|
import gnome.ui
|
||||||
self.client = gnome.ui.Client()
|
self.client = gnome.ui.Client()
|
||||||
self.client.connect("save_yourself", self.shutdown)
|
self.client.connect("die", self.shutdown)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -1739,7 +1739,7 @@ want to remove all seeding torrents?")):
|
|||||||
else:
|
else:
|
||||||
self.shutdown()
|
self.shutdown()
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self, arg=None):
|
||||||
gtk.quit_add(0, self.manager.quit)
|
gtk.quit_add(0, self.manager.quit)
|
||||||
self.window.hide()
|
self.window.hide()
|
||||||
self.save_column_widths()
|
self.save_column_widths()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user