[background] Don't use iter if you didn't get one
This commit is contained in:
parent
7d50b3787c
commit
7ecc6029cc
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue