r18194 - gnucash/trunk/src/gnome-utils - Fix crash for "save as" if sqlite3 backend not available.

Phil Longstaff plongstaff at code.gnucash.org
Thu Jul 9 19:00:58 EDT 2009


Author: plongstaff
Date: 2009-07-09 19:00:57 -0400 (Thu, 09 Jul 2009)
New Revision: 18194
Trac: http://svn.gnucash.org/trac/changeset/18194

Modified:
   gnucash/trunk/src/gnome-utils/dialog-file-access.c
Log:
Fix crash for "save as" if sqlite3 backend not available.


Modified: gnucash/trunk/src/gnome-utils/dialog-file-access.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-file-access.c	2009-07-08 00:28:39 UTC (rev 18193)
+++ gnucash/trunk/src/gnome-utils/dialog-file-access.c	2009-07-09 23:00:57 UTC (rev 18194)
@@ -300,6 +300,11 @@
 	if( need_access_method_xml ) {
 		gtk_combo_box_append_text( faw->cb_uri_type, "xml" );
 		++access_method_index;
+		
+		// If we haven't set a default yet, set it now
+		if( active_access_method_index == -1 ) {
+			active_access_method_index = access_method_index;
+		}
 	}
 	g_assert( active_access_method_index >= 0 );
 	gtk_combo_box_set_active( faw->cb_uri_type, active_access_method_index );



More information about the gnucash-changes mailing list