mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Guard against there being no namespaces in the new security dialog
This commit is contained in:
parent
2fff7b6a14
commit
516c9ed2fe
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user