X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ebadbb76d31a63d46a12b34ec2edcdff3030f9f8..7ea1c917764fb2588fe1aadc75c49ba300f8cb2f:/src/generic/listctrl.cpp diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 05ac0602d0..41beca006a 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2042,7 +2042,7 @@ void wxListTextCtrlWrapper::Finish() { m_finished = true; - m_text->PopEventHandler(this); + m_text->RemoveEventHandler(this); m_owner->FinishEditing(m_text); delete this; @@ -2949,7 +2949,8 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event ) if ( !hitResult ) { - // outside of any item + // outside of any item, reset the selection and bail out + HighlightAll(false); return; }