Guard against there being no namespaces in the new security dialog

This commit is contained in:
Robert Fewell 2023-04-09 11:39:40 +01:00
parent 2fff7b6a14
commit 516c9ed2fe

View File

@ -643,8 +643,10 @@ gnc_ui_update_namespace_picker (GtkWidget *cbwe,
}
if (!matched)
gtk_tree_model_get_iter_first(model, &match);
gtk_combo_box_set_active_iter(combo_box, &match);
matched = gtk_tree_model_get_iter_first (model, &match);
if (matched)
gtk_combo_box_set_active_iter (combo_box, &match);
g_list_free(namespaces);
}