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
@ -498,6 +498,8 @@ wxTopLevelWindowGTK::~wxTopLevelWindowGTK()
|
|||||||
{
|
{
|
||||||
m_isBeingDeleted = TRUE;
|
m_isBeingDeleted = TRUE;
|
||||||
|
|
||||||
|
gtk_window_set_focus( GTK_WINDOW(m_widget), NULL );
|
||||||
|
|
||||||
wxTopLevelWindows.DeleteObject( this );
|
wxTopLevelWindows.DeleteObject( this );
|
||||||
|
|
||||||
if (wxTheApp->GetTopWindow() == this)
|
if (wxTheApp->GetTopWindow() == this)
|
||||||
|
@ -498,6 +498,8 @@ wxTopLevelWindowGTK::~wxTopLevelWindowGTK()
|
|||||||
{
|
{
|
||||||
m_isBeingDeleted = TRUE;
|
m_isBeingDeleted = TRUE;
|
||||||
|
|
||||||
|
gtk_window_set_focus( GTK_WINDOW(m_widget), NULL );
|
||||||
|
|
||||||
wxTopLevelWindows.DeleteObject( this );
|
wxTopLevelWindows.DeleteObject( this );
|
||||||
|
|
||||||
if (wxTheApp->GetTopWindow() == this)
|
if (wxTheApp->GetTopWindow() == this)
|
||||||
|
Loading…
Reference in New Issue
Block a user