[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
This commit is contained in:
Christopher Lam 2019-08-03 17:22:00 +08:00
parent 8b7093e8d0
commit 1873c2f705

View File

@ -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);