From: buliabyak Date: Mon, 21 Jul 2008 05:25:08 +0000 (+0000) Subject: prevent warning when model is cleared before being refilled X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bee1ec4cb4c3bed40da3845bcfa333a4dc44ac8d;p=inkscape.git prevent warning when model is cleared before being refilled --- 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 ); } }