Fix uncaught exception when closing deluge in classic mode

This commit is contained in:
John Garland 2010-07-02 02:36:04 +10:00
parent 2a2f5d90ae
commit 37a00a48a7
2 changed files with 11 additions and 5 deletions

View File

@ -8,15 +8,18 @@
* #1247: Fix deluge-gtk from hanging on shutdown * #1247: Fix deluge-gtk from hanging on shutdown
* #995: Rewrote tracker_icons * #995: Rewrote tracker_icons
==== Blocklist ==== ==== GtkUI ====
* Implement local blocklist support * Fix uncaught exception when closing deluge in classic mode
* #861: Pause transfers until blocklist is imported
==== Web ==== ==== WebUI ====
* Migrate to ExtJS 3.1 * Migrate to ExtJS 3.1
* Add gzip compression of HTTP data to the server * Add gzip compression of HTTP data to the server
* Improve the efficiency of the TorrentGrid * Improve the efficiency of the TorrentGrid
==== Blocklist ====
* Implement local blocklist support
* #861: Pause transfers until blocklist is imported
=== Deluge 1.2.0 - "Bursting like an infected kidney" (10 January 2010) === === Deluge 1.2.0 - "Bursting like an infected kidney" (10 January 2010) ===
==== Core ==== ==== Core ====
* Implement new RPC protocol DelugeRPC replacing XMLRPC * Implement new RPC protocol DelugeRPC replacing XMLRPC

View File

@ -153,7 +153,10 @@ class MainWindow(component.Component):
return self.main_glade return self.main_glade
def quit(self): def quit(self):
reactor.stop() if client.is_classicmode():
gtk.main_quit()
else:
reactor.stop()
def load_window_state(self): def load_window_state(self):
x = self.config["window_x_pos"] x = self.config["window_x_pos"]