Patch #1111679
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -390,6 +390,12 @@ bool wxTreeTextCtrl::AcceptChanges()
|
|||||||
if ( value == m_startValue )
|
if ( value == m_startValue )
|
||||||
{
|
{
|
||||||
// nothing changed, always accept
|
// 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user