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:
David Hampton 2007-03-20 05:19:20 +00:00
parent 13f1be4d84
commit f506b75fdb

View File

@ -391,6 +391,8 @@ gnc_ui_print_restore_dialog(PrintCheckDialog * pcd)
model = gtk_combo_box_get_model(GTK_COMBO_BOX(pcd->format_combobox));
if (find_existing_format(GTK_LIST_STORE(model), guid, &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);