From 127638e440f4224a9a5db984e3260b6b315c1ebe Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Wed, 11 Nov 2009 21:17:32 +0000 Subject: [PATCH] In the "Save As" dialog, set XML as default, not sqlite3. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18412 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome-utils/dialog-file-access.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gnome-utils/dialog-file-access.c b/src/gnome-utils/dialog-file-access.c index 0bffa1edb8..e7468d081c 100644 --- a/src/gnome-utils/dialog-file-access.c +++ b/src/gnome-utils/dialog-file-access.c @@ -316,10 +316,9 @@ gnc_ui_file_access( int type ) 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 );