mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Caused by the introduction of caching used in gnc_pricedb_nth_price, when prices were deleted, the cached list was never updated and so the tree model could reference a deleted price and hence crash. This also affected adding prices as the new prices would not show due to the cache not being updated. To fix this a function was added to reset the cache when prices are updated from the model.