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:
parent
e1f14d226f
commit
c6ac78a61e
@ -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 );
|
||||
|
||||
|
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user