X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9ed8caa09bc542a2ad9f752c0a6ca63c7119747..34f35c75c4c12c2715e3f9182f25e24eec7d7919:/src/gtk/combobox.cpp diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index 445a6cddb1..62da3070c9 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -292,6 +292,10 @@ void wxComboBox::SetString(unsigned int n, const wxString& text) // with wxMSW and also because it makes sense as leaving the old string // in the text but not in the list would be confusing to the user. SetValue(text); + + // And we need to keep the selection unchanged, modifying the item is + // not supposed to deselect it. + SetSelection(n); } }