Module: deluge Branch: 1.3-stable Commit: d9a2c4db720544a290fbb9655a51e9a687b0fe5f
Author: John Garland <[email protected]> Date: Fri Jul 2 02:36:04 2010 +1000 Fix uncaught exception when closing deluge in classic mode --- ChangeLog | 3 +++ deluge/ui/gtkui/mainwindow.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index 21f97af..c96aaf2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,9 @@ * #1307: Fix not being able to add torrents * #1293: Fix not being able to add paths that contain backslashes +==== GtkUI ==== + * Fix uncaught exception when closing deluge in classic mode + ==== Execute ==== * #1306: Fix always executing last event diff --git a/deluge/ui/gtkui/mainwindow.py b/deluge/ui/gtkui/mainwindow.py index 1153b1e..47887c1 100644 --- a/deluge/ui/gtkui/mainwindow.py +++ b/deluge/ui/gtkui/mainwindow.py @@ -153,7 +153,10 @@ class MainWindow(component.Component): return self.main_glade def quit(self): - reactor.stop() + if client.is_classicmode(): + gtk.main_quit() + else: + reactor.stop() def load_window_state(self): x = self.config["window_x_pos"] -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
