Don't let anything, such as pressing F2, start editing an entry if the renderer is set to wxDATAVIEW_CELL_INERT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d93cc83080
commit
b9293331c6
@ -4634,6 +4634,7 @@ void wxDataViewCtrl::StartEditor( const wxDataViewItem & item, unsigned int colu
|
||||
|
||||
wxRect itemRect = GetItemRect(item, col);
|
||||
wxDataViewRenderer* renderer = col->GetRenderer();
|
||||
if (renderer->GetMode() == wxDATAVIEW_CELL_EDITABLE)
|
||||
renderer->StartEditing(item, itemRect);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user