mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Use gnc_pricedb_has_prices instead of testing the return value of get_prices.
This commit is contained in:
parent
dfc0b28bed
commit
ae35dbb464
@ -164,8 +164,7 @@ remove_clicked (CommoditiesDialog *cd)
|
||||
g_list_free (accounts);
|
||||
|
||||
pdb = gnc_pricedb_get_db (cd->book);
|
||||
prices = gnc_pricedb_get_prices(pdb, commodity, NULL);
|
||||
if (prices)
|
||||
if (gnc_pricedb_has_prices(pdb, commodity, NULL))
|
||||
{
|
||||
message = _("This commodity has price quotes. Are "
|
||||
"you sure you want to delete the selected "
|
||||
|
Loading…
Reference in New Issue
Block a user