diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 98b64ffcdd..0811ee2069 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -390,6 +390,12 @@ bool wxTreeTextCtrl::AcceptChanges() if ( value == m_startValue ) { // nothing changed, always accept + // when an item remains unchanged, the owner + // needs to be notified that the user decided + // not to change the tree item label, and that + // the edit has been cancelled + + m_owner->OnRenameCancelled(m_itemEdited); return true; }