[background] Don't use iter if you didn't get one

This commit is contained in:
William Jon McCann 2010-11-01 19:07:03 -04:00
parent 7d50b3787c
commit 7ecc6029cc

View file

@ -546,7 +546,10 @@ style_changed_cb (GtkComboBox *box,
GtkTreeIter iter;
gint value;
gtk_combo_box_get_active_iter (box, &iter);
if (!gtk_combo_box_get_active_iter (box, &iter))
{
return;
}
model = gtk_combo_box_get_model (box);