From 45cfc32a244359e143c3f8cbc0310fcc9e262c9b Mon Sep 17 00:00:00 2001 From: gambas Date: Mon, 16 Nov 2020 01:20:59 +0100 Subject: [PATCH] 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. --- gb.gtk/src/gcombobox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb.gtk/src/gcombobox.cpp b/gb.gtk/src/gcombobox.cpp index 6b41e8b66..a69403f50 100644 --- a/gb.gtk/src/gcombobox.cpp +++ b/gb.gtk/src/gcombobox.cpp @@ -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;