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:
@@ -4634,6 +4634,7 @@ void wxDataViewCtrl::StartEditor( const wxDataViewItem & item, unsigned int colu
|
|||||||
|
|
||||||
wxRect itemRect = GetItemRect(item, col);
|
wxRect itemRect = GetItemRect(item, col);
|
||||||
wxDataViewRenderer* renderer = col->GetRenderer();
|
wxDataViewRenderer* renderer = col->GetRenderer();
|
||||||
|
if (renderer->GetMode() == wxDATAVIEW_CELL_EDITABLE)
|
||||||
renderer->StartEditing(item, itemRect);
|
renderer->StartEditing(item, itemRect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user