Fix strange multi-selection behaviour on Linux (#2269).
authorCarl Hetherington <cth@carlh.net>
Tue, 7 Jun 2022 20:29:13 +0000 (22:29 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 9 Jun 2022 07:34:57 +0000 (09:34 +0200)
commit7fa7b39acdb940d8eafdf8b553525dae7c152084
tree3da4c75c612108ab05838a4371f753299de1b21d
parent6b966acc4b9078989de82daf742b6569b749d0a0
Fix strange multi-selection behaviour on Linux (#2269).

It seems that all of a sudden the behaviour of wxListCtrl's selection
is strange (on Linux at least).  If a list item is selected by
some other action (e.g. selection in the timeline) and then you click
another directly in the list, both are selected.

This "fix" seems to work on Linux at least - also setting
wxLIST_STATE_FOCUSED as well as wxLIST_STATE_SELECTED.  I don't know
why this works.
src/wx/content_panel.cc
src/wx/content_panel.h