r15741 - gnucash/trunk/src/gnome - If the specified check format guid can't be found then select the

David Hampton hampton at cvs.gnucash.org
Tue Mar 20 01:19:21 EDT 2007


Author: hampton
Date: 2007-03-20 01:19:20 -0400 (Tue, 20 Mar 2007)
New Revision: 15741
Trac: http://svn.gnucash.org/trac/changeset/15741

Modified:
   gnucash/trunk/src/gnome/dialog-print-check.c
Log:
If the specified check format guid can't be found then select the
first check format in the list.


Modified: gnucash/trunk/src/gnome/dialog-print-check.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-print-check.c	2007-03-20 05:15:14 UTC (rev 15740)
+++ gnucash/trunk/src/gnome/dialog-print-check.c	2007-03-20 05:19:20 UTC (rev 15741)
@@ -391,6 +391,8 @@
       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);



More information about the gnucash-changes mailing list