X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33fe475aeb7ad2bd10bcfc3e79dcfff220b9a3a9..dde4740fe1dddbb2738a0afd054f493cb0dd67d1:/src/generic/treectlg.cpp diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 5a6c21a1b3..25d04b0dee 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -415,7 +415,7 @@ bool wxTreeTextCtrl::AcceptChanges() void wxTreeTextCtrl::Finish() { - if ( !m_finished && !m_aboutToFinish ) + if ( !m_finished ) { m_owner->ResetTextControl(); @@ -470,7 +470,7 @@ void wxTreeTextCtrl::OnKeyUp( wxKeyEvent &event ) void wxTreeTextCtrl::OnKillFocus( wxFocusEvent &event ) { - if ( !m_finished ) + if ( !m_finished && !m_aboutToFinish ) { // We must finish regardless of success, otherwise we'll get // focus problems: