gnucash maint: [qif/assistant-qif-import.c] gfec_apply requires a list of arguments

Christopher Lam clam at code.gnucash.org
Sat Aug 3 05:26:30 EDT 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/1873c2f7 (commit)
	from  https://github.com/Gnucash/gnucash/commit/8b7093e8 (commit)



commit 1873c2f70581f5b07a866142cbede1e62a416fab
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Aug 3 17:22:00 2019 +0800

    [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

diff --git a/gnucash/import-export/qif-imp/assistant-qif-import.c b/gnucash/import-export/qif-imp/assistant-qif-import.c
index edc448bcb..ca5591d73 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);



Summary of changes:
 gnucash/import-export/qif-imp/assistant-qif-import.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)



More information about the gnucash-changes mailing list