From d9d24a90553eb4e6e6eb1a1336bad3f9ae7dfc98 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sat, 1 Dec 2018 10:58:15 +0000 Subject: [PATCH] Missed adding new parent window parameter Added a GtkWindow parameter to csv_import_read_file to pass to the error dialogue but missed actually adding it. --- gnucash/import-export/csv-imp/csv-account-import.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnucash/import-export/csv-imp/csv-account-import.c b/gnucash/import-export/csv-imp/csv-account-import.c index b591cbd642..e0affa39ad 100644 --- a/gnucash/import-export/csv-imp/csv-account-import.c +++ b/gnucash/import-export/csv-imp/csv-account-import.c @@ -78,7 +78,7 @@ fill_model_with_match(GMatchInfo *match_info, * Parse the file for a correctly formatted file *******************************************************/ csv_import_result -csv_import_read_file (GtkWindow *win, const gchar *filename, +csv_import_read_file (GtkWindow *window, const gchar *filename, const gchar *parser_regexp, GtkListStore *store, guint max_rows) { @@ -114,7 +114,7 @@ csv_import_read_file (GtkWindow *win, const gchar *filename, parser_regexp, err->message); g_error_free (err); - dialog = gtk_message_dialog_new (NULL, + dialog = gtk_message_dialog_new (window, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", errmsg);