Skip to content

Commit

Permalink
Fix Wrong method name in wxAddRemoveCtrl documentation
Browse files Browse the repository at this point in the history
Use the correct CanRemove() instead of the non-existent CanRename().

Closes wxWidgets#747
  • Loading branch information
XPsoud authored and vadz committed Feb 26, 2018
1 parent 3d427a1 commit 813fdca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/wx/addremovectrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()); }
Expand Down

0 comments on commit 813fdca

Please sign in to comment.