From c145a47c6e8fda0223826362e09ca1211647e3a7 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 29 Jan 2005 01:03:07 +0000 Subject: [PATCH] Patch #1111679 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectlg.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.45.2