Use wxDataViewCtrl::EditItem rather than StartEditor when using 2.9.4 as StartEditor is deprecated
Originally committed to SVN as r6332.
This commit is contained in:
parent
6d4a56d391
commit
d273255814
1 changed files with 4 additions and 0 deletions
|
@ -428,7 +428,11 @@ void Interface_Hotkeys::OnNewButton(wxCommandEvent&) {
|
|||
}
|
||||
|
||||
void Interface_Hotkeys::OnEditButton(wxCommandEvent&) {
|
||||
#if wxCHECK_VERSION(2, 9, 4)
|
||||
dvc->EditItem(dvc->GetSelection(), dvc->GetColumn(0));
|
||||
#else
|
||||
dvc->StartEditor(dvc->GetSelection(), 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Interface_Hotkeys::OnDeleteButton(wxCommandEvent&) {
|
||||
|
|
Loading…
Reference in a new issue