FIX: Don't move combobox item in the same position (works incorrect under Qt4)

This commit is contained in:
Alexander Koblov 2013-04-27 19:18:16 +00:00
commit 98ba15ffb5

View file

@ -807,7 +807,7 @@ begin
if (I < 0) or (I >= Count) then
comboBox.Items.Insert(0, sLine)
else
else if (I > 0) then
begin
comboBox.Items.Move(I, 0);
// Reset selected item (and combobox text), because Move has destroyed it.