Skip to content

Commit

Permalink
[import-match-picker] ditto last commit, use GncTreeData::set and ded…
Browse files Browse the repository at this point in the history
…uce type from argument
  • Loading branch information
christopherlam committed Aug 20, 2023
1 parent 6c9dd43 commit 30c5803
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions gnucash/import-export/import-match-picker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,13 @@ downloaded_transaction_append(GNCImportMatchPicker * matcher,
auto imbalance = g_strdup (xaccPrintAmount (xaccTransGetImbalanceValue(trans),
gnc_commodity_print_info (xaccTransGetCurrency (trans), TRUE)));

gtk_list_store_set (store, &iter->get_iter(),
DOWNLOADED_COL_ACCOUNT, account,
DOWNLOADED_COL_DATE, date,
DOWNLOADED_COL_AMOUNT, amount,
DOWNLOADED_COL_DESCRIPTION, desc,
DOWNLOADED_COL_MEMO, memo,
DOWNLOADED_COL_BALANCED, imbalance,
DOWNLOADED_COL_INFO_PTR, transaction_info,
-1);
iter->set (DOWNLOADED_COL_ACCOUNT, account);
iter->set (DOWNLOADED_COL_DATE, date);
iter->set (DOWNLOADED_COL_AMOUNT, amount);
iter->set (DOWNLOADED_COL_DESCRIPTION, desc);
iter->set (DOWNLOADED_COL_MEMO, memo);
iter->set (DOWNLOADED_COL_BALANCED, imbalance);
iter->set (DOWNLOADED_COL_INFO_PTR, transaction_info);

gtk_tree_selection_select_iter (gtk_tree_view_get_selection(matcher->downloaded_view), &iter->get_iter());

Expand Down

0 comments on commit 30c5803

Please sign in to comment.