Setting the ComboBox.Index property to -1 does not raise the Click event anymore.

[GB.GTK]
* BUG: Setting the ComboBox.Index property to -1 does not raise the Click event anymore.

[GB.GTK3]
* BUG: Setting the ComboBox.Index property to -1 does not raise the Click event anymore.
This commit is contained in:
gambas 2020-11-16 01:20:59 +01:00
parent b2a55d6bc1
commit 45cfc32a24

View file

@ -383,7 +383,7 @@ void gComboBox::setIndex(int vl)
else if (vl >= count())
return;
if (vl == index())
if (vl == index() && vl >= 0)
{
emit(SIGNAL(onClick));
return;