Changeset 3275

Show
Ignore:
Timestamp:
06/23/08 22:10:49 (7 months ago)
Author:
andar
Message:

Fix #292 clicking on the tray icon while using 'start in tray'

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/deluge-0.6/deluge/ui/gtkui/mainwindow.py

    r3267 r3275  
    9797    def present(self): 
    9898        # Restore the proper x,y coords for the window prior to showing it 
    99         self.config["window_x_pos"] = self.window_x_pos 
    100         self.config["window_y_pos"] = self.window_y_pos 
     99        try: 
     100            self.config["window_x_pos"] = self.window_x_pos 
     101            self.config["window_y_pos"] = self.window_y_pos 
     102        except: 
     103            pass 
    101104        
    102105        self.window.present()