Ticket #395: p

File p, 609 bytes (added by alsroot, 15 years ago)
Line 
1diff --git a/src/sugar/graphics/window.py b/src/sugar/graphics/window.py
2index 1ad2bca..e82b3b9 100644
3--- a/src/sugar/graphics/window.py
4+++ b/src/sugar/graphics/window.py
5@@ -192,7 +192,7 @@ class Window(gtk.Window):
6     def __key_press_cb(self, widget, event):
7         key = gtk.gdk.keyval_name(event.keyval)
8         if event.state & gtk.gdk.MOD1_MASK:
9-            if key == 'space':
10+            if self.tray is not None and key == 'space':
11                 self.tray.props.visible = not self.tray.props.visible
12                 return True
13         elif key == 'Escape' and self._is_fullscreen and \