mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 05:26:28 +00:00
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:
|
||||
import gnome.ui
|
||||
self.client = gnome.ui.Client()
|
||||
self.client.connect("save_yourself", self.shutdown)
|
||||
self.client.connect("die", self.shutdown)
|
||||
except:
|
||||
pass
|
||||
|
||||
@ -1739,7 +1739,7 @@ want to remove all seeding torrents?")):
|
||||
else:
|
||||
self.shutdown()
|
||||
|
||||
def shutdown(self):
|
||||
def shutdown(self, arg=None):
|
||||
gtk.quit_add(0, self.manager.quit)
|
||||
self.window.hide()
|
||||
self.save_column_widths()
|
||||
|
Loading…
x
Reference in New Issue
Block a user