]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
using new API (no visual difference)
[wxWidgets.git] / src / generic / listctrl.cpp
index 05ac0602d0f058827ba17279a4058b525c969030..41beca006a6ace93a1dd1d02126d8ba537819be9 100644 (file)
@@ -2042,7 +2042,7 @@ void wxListTextCtrlWrapper::Finish()
     {
         m_finished = true;
 
     {
         m_finished = true;
 
-        m_text->PopEventHandler(this);
+        m_text->RemoveEventHandler(this);
         m_owner->FinishEditing(m_text);
 
         delete this;
         m_owner->FinishEditing(m_text);
 
         delete this;
@@ -2949,7 +2949,8 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
 
     if ( !hitResult )
     {
 
     if ( !hitResult )
     {
-        // outside of any item
+        // outside of any item, reset the selection and bail out
+        HighlightAll(false);
         return;
     }
 
         return;
     }