Trying to fix dialog close/focus_widget problem.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2001-11-17 17:14:40 +00:00
parent e1f14d226f
commit c6ac78a61e
2 changed files with 4 additions and 0 deletions

View File

@ -497,6 +497,8 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
wxTopLevelWindowGTK::~wxTopLevelWindowGTK()
{
m_isBeingDeleted = TRUE;
gtk_window_set_focus( GTK_WINDOW(m_widget), NULL );
wxTopLevelWindows.DeleteObject( this );

View File

@ -497,6 +497,8 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
wxTopLevelWindowGTK::~wxTopLevelWindowGTK()
{
m_isBeingDeleted = TRUE;
gtk_window_set_focus( GTK_WINDOW(m_widget), NULL );
wxTopLevelWindows.DeleteObject( this );