r18412 - gnucash/trunk/src/gnome-utils - In the "Save As" dialog, set XML as default, not sqlite3.

Christian Stimming cstim at code.gnucash.org
Wed Nov 11 16:17:32 EST 2009


Author: cstim
Date: 2009-11-11 16:17:32 -0500 (Wed, 11 Nov 2009)
New Revision: 18412
Trac: http://svn.gnucash.org/trac/changeset/18412

Modified:
   gnucash/trunk/src/gnome-utils/dialog-file-access.c
Log:
In the "Save As" dialog, set XML as default, not sqlite3.

Modified: gnucash/trunk/src/gnome-utils/dialog-file-access.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-file-access.c	2009-11-11 21:07:50 UTC (rev 18411)
+++ gnucash/trunk/src/gnome-utils/dialog-file-access.c	2009-11-11 21:17:32 UTC (rev 18412)
@@ -316,10 +316,9 @@
 		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;
-		}
+		// Set XML as default if it is offered (which mean we are in
+		// the "Save As" dialog)
+		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