Prevent bogus event which GTK 2.4 sends after
typing text in the text area begins and the text there has no match in the list. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -190,6 +190,9 @@ gtkcombobox_changed_callback( GtkWidget *WXUNUSED(widget), wxComboBox *combo )
|
||||
|
||||
if (!combo->m_hasVMT) return;
|
||||
|
||||
if (combo->GetSelection() == -1)
|
||||
return;
|
||||
|
||||
wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, combo->GetId() );
|
||||
event.SetInt( combo->GetSelection() );
|
||||
event.SetString( combo->GetStringSelection() );
|
||||
|
Reference in New Issue
Block a user