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:
Thomas Goyne 2012-01-22 05:59:31 +00:00
parent 6d4a56d391
commit d273255814
1 changed files with 4 additions and 0 deletions

View File

@ -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&) {