]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/window.cpp
Add the new showOnIdle code to various other
[wxWidgets.git] / src / gtk1 / window.cpp
index 9f3a829aef33294d95f3cf4d1cef1c63b912e0d2..98c21e02b30f75006be46c8f7c6191371657712c 100644 (file)
@@ -2932,13 +2932,11 @@ void wxWindowGTK::OnInternalIdle()
                 gdk_window_set_cursor( window, cursor.GetCursor() );
 
         }
-        else
+        else if ( m_widget )
         {
-
             GdkWindow *window = m_widget->window;
-            if ((window) && !(GTK_WIDGET_NO_WINDOW(m_widget)))
+            if ( window && !GTK_WIDGET_NO_WINDOW(m_widget) )
                gdk_window_set_cursor( window, cursor.GetCursor() );
-
         }
     }