network: Handle case where GtkComboBox has no active iter
This commit is contained in:
parent
6bb77ec1e2
commit
4897c6d8e3
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@ security_combo_get_active (CEPageSecurity *self)
|
||||||
WirelessSecurity *sec = NULL;
|
WirelessSecurity *sec = NULL;
|
||||||
|
|
||||||
model = gtk_combo_box_get_model (self->security_combo);
|
model = gtk_combo_box_get_model (self->security_combo);
|
||||||
gtk_combo_box_get_active_iter (self->security_combo, &iter);
|
if (!gtk_combo_box_get_active_iter (self->security_combo, &iter))
|
||||||
|
return NULL;
|
||||||
gtk_tree_model_get (model, &iter, S_SEC_COLUMN, &sec, -1);
|
gtk_tree_model_get (model, &iter, S_SEC_COLUMN, &sec, -1);
|
||||||
|
|
||||||
return sec;
|
return sec;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue