diff --git a/interface/wx/addremovectrl.h b/interface/wx/addremovectrl.h index a2fcf6e3bb1f..67d37fb73caa 100644 --- a/interface/wx/addremovectrl.h +++ b/interface/wx/addremovectrl.h @@ -121,7 +121,7 @@ class wxAddRemoveAdaptor virtual wxWindow* GetItemsCtrl() const { return m_lbox; } virtual bool CanAdd() const { return true; } - virtual bool CanRename() const { return m_lbox->GetSelection() != wxNOT_FOUND; } + virtual bool CanRemove() const { return m_lbox->GetSelection() != wxNOT_FOUND; } virtual void OnAdd() { ... get the new item from user and add it ... } virtual void OnRemove() { m_lbox->Delete(m_lbox->GetSelection()); }