Module: deluge Branch: 1.2-stable Commit: 131af5a50a74de6e83af21d49c04ef07cd4c81af
Author: John Garland <[email protected]> Date: Fri Jul 2 02:36:04 2010 +1000 Fix uncaught exception when closing deluge in classic mode --- deluge/ui/gtkui/mainwindow.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) 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.
