mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
If the specified check format guid can't be found then select the
first check format in the list. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15741 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
13f1be4d84
commit
f506b75fdb
@ -391,6 +391,8 @@ gnc_ui_print_restore_dialog(PrintCheckDialog * pcd)
|
|||||||
model = gtk_combo_box_get_model(GTK_COMBO_BOX(pcd->format_combobox));
|
model = gtk_combo_box_get_model(GTK_COMBO_BOX(pcd->format_combobox));
|
||||||
if (find_existing_format(GTK_LIST_STORE(model), guid, &iter)) {
|
if (find_existing_format(GTK_LIST_STORE(model), guid, &iter)) {
|
||||||
gtk_combo_box_set_active_iter(GTK_COMBO_BOX(pcd->format_combobox), &iter);
|
gtk_combo_box_set_active_iter(GTK_COMBO_BOX(pcd->format_combobox), &iter);
|
||||||
|
} else {
|
||||||
|
gtk_combo_box_set_active(GTK_COMBO_BOX(pcd->format_combobox), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
active = gnc_gconf_get_int(GCONF_SECTION, KEY_CHECK_POSITION, NULL);
|
active = gnc_gconf_get_int(GCONF_SECTION, KEY_CHECK_POSITION, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user