X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c693edf3bc9539378a7ac56d90d41d89c7dc7579..e8ac7bf221aec78b2a420660db711eed2e771670:/src/gtk/dialog.cpp?ds=sidebyside diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index fe199dd6de..9812ec9c7b 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -18,6 +18,7 @@ #include "gdk/gdk.h" #include "gtk/gtk.h" #include "wx/gtk/win_gtk.h" +#include "wx/cursor.h" //----------------------------------------------------------------------------- // idle system @@ -248,7 +249,12 @@ bool wxDialog::Create( wxWindow *parent, m_needParent = FALSE; - PreCreation( parent, id, pos, size, style, name ); + if (!PreCreation( parent, pos, size ) || + !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name )) + { + wxFAIL_MSG( _T("wxDialog creation failed") ); + return FALSE; + } m_insertCallback = (wxInsertChildFunction) wxInsertChildInDialog; @@ -590,6 +596,8 @@ int wxDialog::ShowModal() return GetReturnCode(); } + wxBusyCursorSuspender cs; // temporarily suppress the busy cursor + Show( TRUE ); m_modalShowing = TRUE;