X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5de69dd366b43dc43259b34728272ae550ade92b..6cab4fcac7fe26d9ae5a1d29066e0893d689bb38:/src/msw/choice.cpp?ds=sidebyside diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index 7b73e6f6f1..14a10703bc 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -703,13 +703,6 @@ bool wxChoice::MSWCommand(WXUINT param, WXWORD WXUNUSED(id)) // need to reset the selection back to it if it's eventually // cancelled by user m_lastAcceptedSelection = GetCurrentSelection(); - if ( m_lastAcceptedSelection == -1 ) - { - // no current selection so no need to restore it later (this - // happens when opening a combobox containing text not from its - // list of items and we shouldn't erase this text) - m_lastAcceptedSelection = wxID_NONE; - } break; case CBN_CLOSEUP: