]> git.saurik.com Git - wxWidgets.git/commitdiff
Patch #1111679
authorRobin Dunn <robin@alldunn.com>
Sat, 29 Jan 2005 01:03:07 +0000 (01:03 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 29 Jan 2005 01:03:07 +0000 (01:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index 98b64ffcddeecd6e221d478e9499400a62919088..0811ee2069748b6eae731b333730b19b37257f4d 100644 (file)
@@ -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;
     }