fix booh startup :/
authorgc <gc>
Wed, 14 Dec 2005 20:56:38 +0000 (20:56 +0000)
committergc <gc>
Wed, 14 Dec 2005 20:56:38 +0000 (20:56 +0000)
bin/booh

index 7bcc6a4746919f80458311e816177f3faf5d281b..01f425326d94ff72f190288a402775578dc5a9ca 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -188,7 +188,7 @@ def set_mousecursor(what, *widget)
     if widget[0] && widget[0].window
         widget[0].window.cursor = cursor
     end
     if widget[0] && widget[0].window
         widget[0].window.cursor = cursor
     end
-    if $main_window.window
+    if $main_window && $main_window.window
         $main_window.window.cursor = cursor
     end
     $current_cursor = what
         $main_window.window.cursor = cursor
     end
     $current_cursor = what