From 90dab4e65a1d47a481003a83c8c4c8194a703e05 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 6 Jul 2003 11:49:43 +0000 Subject: [PATCH] OK, wxMSW doesn't seem to send the end label edit event for wxListCtrls if the label editing was cancelled. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index bcc0851715..93316cee7d 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -3096,6 +3096,10 @@ bool wxListMainWindow::OnRenameAccept(size_t itemEdit, const wxString& value) void wxListMainWindow::OnRenameCancelled(size_t itemEdit) { + // wxMSW seems not to notify the program about + // cancelled label edits. + return; + // let owner know that the edit was cancelled wxListEvent le( wxEVT_COMMAND_LIST_END_LABEL_EDIT, GetParent()->GetId() );