From: Vadim Zeitlin Date: Sun, 12 Mar 2006 19:43:27 +0000 (+0000) Subject: don't send EVT_CHOICE events while the dropdown is opened for consistency with the... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d77d8c0719173311669c52b96aa5a35023a827d0 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 --- 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();