Skip to content

Commit 2dfdb0b

Browse files
[gnc-file.c] non-dbi file dialog filters .gnucash .xac files
1 parent 42b4ed6 commit 2dfdb0b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

gnucash/gnome-utils/gnc-file.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,9 @@ gnc_file_open (GtkWindow *parent)
12111211
else
12121212
default_dir = gnc_get_default_directory(GNC_PREFS_GROUP_OPEN_SAVE);
12131213

1214-
newfile = gnc_file_dialog (parent, _("Open"), NULL, default_dir, GNC_FILE_DIALOG_OPEN);
1214+
newfile = gnc_file_dialog (parent, _("Open"),
1215+
gnc_file_chooser_get_datafile_filters(),
1216+
default_dir, GNC_FILE_DIALOG_OPEN);
12151217
g_free ( last );
12161218
g_free ( default_dir );
12171219

@@ -1264,9 +1266,9 @@ gnc_file_export (GtkWindow *parent)
12641266
else
12651267
default_dir = gnc_get_default_directory(GNC_PREFS_GROUP_EXPORT);
12661268

1267-
filename = gnc_file_dialog (parent,
1268-
_("Save"), NULL, default_dir,
1269-
GNC_FILE_DIALOG_SAVE);
1269+
filename = gnc_file_dialog (parent, _("Save"),
1270+
gnc_file_chooser_get_datafile_filters(),
1271+
default_dir, GNC_FILE_DIALOG_SAVE);
12701272
g_free ( last );
12711273
g_free ( default_dir );
12721274
if (!filename) return;
@@ -1536,9 +1538,9 @@ gnc_file_save_as (GtkWindow *parent)
15361538
else
15371539
default_dir = gnc_get_default_directory(GNC_PREFS_GROUP_OPEN_SAVE);
15381540

1539-
filename = gnc_file_dialog (parent,
1540-
_("Save"), NULL, default_dir,
1541-
GNC_FILE_DIALOG_SAVE);
1541+
filename = gnc_file_dialog (parent, _("Save"),
1542+
gnc_file_chooser_get_datafile_filters(),
1543+
default_dir, GNC_FILE_DIALOG_SAVE);
15421544
g_free ( last );
15431545
g_free ( default_dir );
15441546
if (!filename) return;

0 commit comments

Comments
 (0)