ComboBox: Setting the 'Index' property to '-1' whereas it is already '-1' must not raise the 'Click' event.

[GB.GUI.BASE]
* BUG: ComboBox: Setting the 'Index' property to '-1' whereas it is already '-1' must not raise the 'Click' event.
This commit is contained in:
gambas 2022-04-15 15:09:36 +02:00
parent 81c8e435a4
commit 1168502a51

View file

@ -383,6 +383,8 @@ Private Sub Index_Write(Value As Integer)
If Value < -1 Or If Value >= $aList.Count Then Error.Raise("Bad argument")
If $iIndex < 0 And If Value < 0 Then Return
Sort()
If $bReadOnly Then
If $iIndex <> Value Then