]> git.saurik.com Git - wxWidgets.git/commitdiff
don't send EVT_CHOICE events while the dropdown is opened for consistency with the...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Mar 2006 19:43:27 +0000 (19:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Mar 2006 19:43:27 +0000 (19:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/choice.cpp

index b643d1d1cbb8f8432b42cee87865a08cce5493d9..698c61b25962e3a439728a8a3eae50652d99dfdf 100644 (file)
@@ -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();