]> git.saurik.com Git - wxWidgets.git/commitdiff
In wxPropertyGrid::HandleCustomEditorEvent(), ignore events coming from a label editor
authorJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 25 Mar 2010 15:40:27 +0000 (15:40 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 25 Mar 2010 15:40:27 +0000 (15:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgrid.cpp

index 71253a2c5a956fd0595f1d465843bd7ba040f948..6e96206ff5f827a8d8258b653551bb1d887fdf4f 100644 (file)
@@ -3418,6 +3418,15 @@ void wxPropertyGrid::HandleCustomEditorEvent( wxEvent &event )
     if ( !m_pState )
         return;
 
+    // Don't care about the event if it originated from the
+    // 'label editor'. In this function we only care about the
+    // property value editor.
+    if ( m_labelEditor && event.GetId() == m_labelEditor->GetId() )
+    {
+        event.Skip();
+        return;
+    }
+
     wxPGProperty* selected = GetSelection();
 
     // Somehow, event is handled after property has been deselected.