Fix #528 make sure gtkui config file is written before exiting

This commit is contained in:
Andrew Resch 2008-11-08 08:04:46 +00:00
commit 790dcc49ca
2 changed files with 24 additions and 22 deletions

View file

@ -1,6 +1,7 @@
Deluge 1.0.5 (In Development)
GtkUI:
* Increase the per-torrent stop share ratio max to 99999.0
* Fix #528 make sure gtkui config file is written before exiting
WebUi:
* Javascript auto refresh for both templates.

View file

@ -221,9 +221,6 @@ class GtkUI:
def shutdown(self, *args, **kwargs):
log.debug("gtkui shutting down..")
# Make sure the config is saved.
self.config.save()
# Shutdown all components
component.shutdown()
if self.started_in_classic:
@ -231,6 +228,10 @@ class GtkUI:
client.shutdown()
except:
pass
# Make sure the config is saved.
self.config.save()
try:
gtk.main_quit()
except RuntimeError: