mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
use die instead of save_yourself and add arg to shutdown func
This commit is contained in:
parent
dbe41a3cd5
commit
dc60e26c59
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue