]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/app.cpp
Add wxGCDC(const wxWindow*)
[wxWidgets.git] / src / gtk / app.cpp
index 3f6f2920c5a4b3a79073360ae7c7a577231512d5..e60e5ea94cf8d4b277d31e691c5ebd155168fbe8 100644 (file)
@@ -344,6 +344,9 @@ static gint wxapp_poll_func( GPollFD *ufds, guint nfds, gint timeout )
 
 void wxapp_install_idle_handler()
 {
+    if (wxTheApp == NULL)
+        return;
+
 #if wxUSE_THREADS
     wxMutexLocker lock(gs_idleTagsMutex);
 #endif