LCL, qt, fix duplicated entries in TListBox, ComboBox and ChecklistBox when compiled with FPC trunk (2.7.1), issue 24059

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@40811 4005530d-fff6-0310-9dd1-cebe43e6787f