GNOME Bugzilla – Bug 711294
Gnucash repeatedly ask associated income account when import qfx file
Last modified: 2018-06-29 23:20:47 UTC
When import qfx file, gnucash will ask for associated income account for a stock account. It should record the result and not ask again. But it didn't -- it will ask every time. The relevant lines are in gnc-ofx-kvp.c, gnc_ofx_kvp_set_assoc_account(). xaccAccountBeginEdit(investment_account); kvp_frame_set_slot_nc(acc_frame, KEY_ASSOC_INCOME_ACCOUNT, kvp_val); force_account_dirty(investment_account); xaccAccountCommitEdit(investment_account); force_account_dirty() is actually no-op (see Bug 665998). As r21740 and r21753, following change could fix the problem: - force_account_dirty(investment_account); + qof_instance_set_dirty(QOF_INSTANCE (investment_account)); (I haven't tested this myself due to my laziness to build gnucash on windows) This should affect at least gnucash 2.4 and 2.5.
Thank you for your patch, although I almost hadn't found it inlined in the report. I have committed it in r23380. Can you verify this fixes the issue by installing tomorrow's nightly build [1] (or any more recent build) ? Thank you. [1] http://code.gnucash.org/builds/win32/trunk/
Verified with nightly build. It works. Thanks.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=711294. Please update any external references or bookmarks.