mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
Merge Jean Laroche's 'import-ofx-only' into maint.
This commit is contained in:
commit
8fc901fb3b
@ -1032,6 +1032,8 @@ void gnc_file_ofx_import (GtkWindow *parent)
|
||||
char *selected_filename;
|
||||
char *default_dir;
|
||||
LibofxContextPtr libofx_context = libofx_get_new_context();
|
||||
GList *filters = NULL;
|
||||
GtkFileFilter* filter = gtk_file_filter_new ();
|
||||
|
||||
ofx_PARSER_msg = false;
|
||||
ofx_DEBUG_msg = false;
|
||||
@ -1043,9 +1045,13 @@ void gnc_file_ofx_import (GtkWindow *parent)
|
||||
DEBUG("gnc_file_ofx_import(): Begin...\n");
|
||||
|
||||
default_dir = gnc_get_default_directory(GNC_PREFS_GROUP);
|
||||
gtk_file_filter_set_name (filter, "ofx/qfx files (*.ofx,*.qfx)");
|
||||
gtk_file_filter_add_pattern (filter, "*.[oqOQ][fF][xX]");
|
||||
filters = g_list_prepend( filters, filter );
|
||||
|
||||
selected_filename = gnc_file_dialog(parent,
|
||||
_("Select an OFX/QFX file to process"),
|
||||
NULL,
|
||||
filters,
|
||||
default_dir,
|
||||
GNC_FILE_DIALOG_IMPORT);
|
||||
g_free(default_dir);
|
||||
|
Loading…
Reference in New Issue
Block a user