Code

prevent warning when model is cleared before being refilled
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 21 Jul 2008 05:25:08 +0000 (05:25 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 21 Jul 2008 05:25:08 +0000 (05:25 +0000)
src/ege-select-one-action.cpp

index 20967c9e7e5bcc8bbc34693490cb9557fa034dc8..5c552a6e762a952d9f7e8b2e302313626eda4be0 100644 (file)
@@ -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 );
     }
 }