mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[HBCI] Fix crashing aqbanking balance download and import
Also, clarify the preconditions of the import-matcher functions.
Follow-up to d4fe584120
This commit is contained in:
parent
3d7e66d995
commit
64dedccfe3
@ -1245,7 +1245,8 @@ gnc_ab_import_context(AB_IMEXPORTER_CONTEXT *context,
|
||||
data);
|
||||
|
||||
/* populate and display the matching window */
|
||||
gnc_gen_trans_list_show_all(data->generic_importer);
|
||||
if (data->generic_importer)
|
||||
gnc_gen_trans_list_show_all(data->generic_importer);
|
||||
|
||||
/* Check balances */
|
||||
if (!(awaiting & IGNORE_BALANCES))
|
||||
@ -1258,7 +1259,8 @@ gnc_ab_import_context(AB_IMEXPORTER_CONTEXT *context,
|
||||
data);
|
||||
|
||||
/* populate and display the matching window */
|
||||
gnc_gen_trans_list_show_all(data->generic_importer);
|
||||
if (data->generic_importer)
|
||||
gnc_gen_trans_list_show_all(data->generic_importer);
|
||||
|
||||
/* Check balances */
|
||||
if (!(awaiting & IGNORE_BALANCES))
|
||||
|
@ -388,6 +388,7 @@ resolve_conflicts (GNCImportMainMatcher *info)
|
||||
|
||||
void gnc_gen_trans_list_show_all(GNCImportMainMatcher *info)
|
||||
{
|
||||
g_assert (info);
|
||||
gnc_gen_trans_list_create_matches (info);
|
||||
resolve_conflicts (info);
|
||||
gtk_widget_show_all (GTK_WIDGET (info->main_widget));
|
||||
@ -1807,7 +1808,9 @@ gnc_gen_trans_list_create_matches (GNCImportMainMatcher *gui)
|
||||
GHashTable* account_hash =
|
||||
g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL,
|
||||
(GDestroyNotify)g_slist_free);
|
||||
GList *candidate_txns = query_imported_transaction_accounts (gui);
|
||||
GList *candidate_txns;
|
||||
g_assert (gui);
|
||||
candidate_txns = query_imported_transaction_accounts (gui);
|
||||
|
||||
create_hash_of_potential_matches (candidate_txns, account_hash);
|
||||
perform_matching (gui, account_hash);
|
||||
|
Loading…
Reference in New Issue
Block a user