diff --git a/src/main.cpp b/src/main.cpp index 03b191f1ea..230ef76ca0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2739,13 +2739,8 @@ void SamApp::InstallPythonPackage(const std::string& pip_name) { enum { ID_TechTree = wxID_HIGHEST+98, ID_FinTree }; BEGIN_EVENT_TABLE(ConfigDialog, wxDialog) - //EVT_DATAVIEW_ITEM_START_EDITING(ID_TechTree, ConfigDialog::OnTreeActivated) - //EVT_DATAVIEW_ITEM_EDITING_STARTED(ID_TechTree, ConfigDialog::OnTreeActivated) - //EVT_DATAVIEW_ITEM_EDITING_DONE(ID_TechTree, ConfigDialog::OnTreeActivated) - //EVT_DATAVIEW_ITEM_START_EDITING(ID_FinTree, ConfigDialog::OnFinTreeDoubleClick) EVT_DATAVIEW_ITEM_COLLAPSING(ID_TechTree, ConfigDialog::OnTechTreeCollapsing) EVT_DATAVIEW_ITEM_COLLAPSING(ID_FinTree, ConfigDialog::OnFinTreeCollapsing) - //EVT_DATAVIEW_ITEM_ACTIVATED(ID_TechTree, ConfigDialog::OnTreeActivated) EVT_DATAVIEW_ITEM_ACTIVATED(ID_FinTree, ConfigDialog::OnFinTreeDoubleClick) EVT_DATAVIEW_SELECTION_CHANGED(ID_TechTree, ConfigDialog::OnTechTree) EVT_DATAVIEW_SELECTION_CHANGED(ID_FinTree, ConfigDialog::OnFinTree) @@ -3019,14 +3014,7 @@ void ConfigDialog::UpdateFinTree() } } -/* -void ConfigDialog::OnTreeActivated(wxDataViewEvent &evt) -{ - // when does this happen - wxMessageBox("Activated"); - evt.Veto(); -} -*/ + void ConfigDialog::OnTechTreeCollapsing(wxDataViewEvent& evt) { diff --git a/src/main.h b/src/main.h index d62d0f40ef..5a7c65c8ae 100644 --- a/src/main.h +++ b/src/main.h @@ -427,7 +427,6 @@ class ConfigDialog : public wxDialog private: void PopulateTech(); bool ValidateSelections(); -// void OnTreeActivated(wxDataViewEvent& evt); void OnTechTreeCollapsing(wxDataViewEvent& evt); void OnTechTree(wxDataViewEvent &); void OnFinTreeCollapsing(wxDataViewEvent& evt);