From bee1ec4cb4c3bed40da3845bcfa333a4dc44ac8d Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 21 Jul 2008 05:25:08 +0000 Subject: [PATCH] prevent warning when model is cleared before being refilled --- src/ege-select-one-action.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ege-select-one-action.cpp b/src/ege-select-one-action.cpp index 20967c9e7..5c552a6e7 100644 --- a/src/ege-select-one-action.cpp +++ b/src/ege-select-one-action.cpp @@ -732,7 +732,7 @@ void combo_changed_cb( GtkComboBox* widget, gpointer user_data ) { EgeSelectOneAction* act = EGE_SELECT_ONE_ACTION(user_data); gint newActive = gtk_combo_box_get_active(widget); - if (newActive != act->private_data->active) { + if (newActive != act->private_data->active && newActive != -1) { g_object_set( G_OBJECT(act), "active", newActive, NULL ); } } -- 2.30.2