From d77d8c0719173311669c52b96aa5a35023a827d0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 12 Mar 2006 19:43:27 +0000 Subject: [PATCH] don't send EVT_CHOICE events while the dropdown is opened for consistency with the other platforms git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/choice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index b643d1d1cb..698c61b259 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -647,6 +647,9 @@ bool wxChoice::MSWCommand(WXUINT param, WXWORD WXUNUSED(id)) break; case CBN_SELCHANGE: + // don't generate any events while the dropdown is opened as the + // selection is not final yet + if ( m_lastAcceptedSelection == wxID_NONE ) { const int n = GetSelection(); -- 2.45.2