Fix focus at the end of a property label edit (needed at least for wxGTK)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-03-25 15:55:01 +00:00
parent ad2db6f8ea
commit 18e543ea9d

View File

@@ -1071,11 +1071,17 @@ void wxPropertyGrid::DoEndLabelEdit( bool commit, int selFlags )
}
m_selColumn = 1;
int wasFocused = m_iFlags & wxPG_FL_FOCUSED;
DestroyEditorWnd(m_labelEditor);
m_labelEditor = NULL;
m_labelEditorProperty = NULL;
// Fix focus (needed at least on wxGTK)
if ( wasFocused )
SetFocusOnCanvas();
DrawItem(prop);
}