From 1873c2f70581f5b07a866142cbede1e62a416fab Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sat, 3 Aug 2019 17:22:00 +0800 Subject: [PATCH] [qif/assistant-qif-import.c] gfec_apply requires a list of arguments * instead of argument, send a list of arguments. * the undo scm function would never run otherwise --- gnucash/import-export/qif-imp/assistant-qif-import.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnucash/import-export/qif-imp/assistant-qif-import.c b/gnucash/import-export/qif-imp/assistant-qif-import.c index edc448bcbb..ca5591d73e 100644 --- a/gnucash/import-export/qif-imp/assistant-qif-import.c +++ b/gnucash/import-export/qif-imp/assistant-qif-import.c @@ -1111,7 +1111,8 @@ gnc_ui_qif_import_convert_undo (QIFImportWindow * wind) /* Undo the conversion. */ if (wind->imported_account_tree != SCM_BOOL_F) - gfec_apply (undo, wind->imported_account_tree, _gfec_error_handler); + gfec_apply (undo, scm_list_1 (wind->imported_account_tree), + _gfec_error_handler); /* There's no imported account tree any more. */ scm_gc_unprotect_object (wind->imported_account_tree);