diff --git a/src/casewin.cpp b/src/casewin.cpp index ef82f8e462..95386bbacd 100644 --- a/src/casewin.cpp +++ b/src/casewin.cpp @@ -698,6 +698,7 @@ void CaseWindow::OnTechTree(wxDataViewEvent&) void CaseWindow::OnTreeActivated(wxDataViewEvent& evt) { + wxString here = "yes"; evt.Veto(); } diff --git a/src/main.cpp b/src/main.cpp index 548d8fe76a..c13cab434a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3021,6 +3021,8 @@ void ConfigDialog::UpdateFinTree() void ConfigDialog::OnTreeActivated(wxDataViewEvent &evt) { + // when does this happen + wxString here = "yes"; evt.Veto(); } @@ -3033,12 +3035,13 @@ void ConfigDialog::OnFinTreeDoubleClick(wxDataViewEvent &evt) } -void ConfigDialog::OnTechTree(wxDataViewEvent &) +void ConfigDialog::OnTechTree(wxDataViewEvent &evt) { if (m_pTech->IsContainer(m_pTech->GetCurrentItem())) { - m_pTech->Expand(m_pTech->GetCurrentItem()); - m_techname = ""; +// m_pTech->Expand(m_pTech->GetCurrentItem()); +// m_techname = ""; +// evt.Veto(); return; } wxString title = m_pTech->GetItemText(m_pTech->GetCurrentItem());