From eeedd79f4599f8322843189dbe3465bd683f208a Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 23 Jun 2008 22:10:49 +0000 Subject: [PATCH] Fix #292 clicking on the tray icon while using 'start in tray' --- deluge/ui/gtkui/mainwindow.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/mainwindow.py b/deluge/ui/gtkui/mainwindow.py index 85fbec4ee..8435fa067 100644 --- a/deluge/ui/gtkui/mainwindow.py +++ b/deluge/ui/gtkui/mainwindow.py @@ -96,8 +96,11 @@ class MainWindow(component.Component): def present(self): # Restore the proper x,y coords for the window prior to showing it - self.config["window_x_pos"] = self.window_x_pos - self.config["window_y_pos"] = self.window_y_pos + try: + self.config["window_x_pos"] = self.window_x_pos + self.config["window_y_pos"] = self.window_y_pos + except: + pass self.window.present() self.load_window_state()