mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix crash for "save as" if sqlite3 backend not available.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18194 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
32ee13de24
commit
9dbe12155b
@ -300,6 +300,11 @@ gnc_ui_file_access( int type )
|
||||
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 );
|
||||
|
Loading…
Reference in New Issue
Block a user