Use gnc_pricedb_has_prices instead of testing the return value of get_prices.

This commit is contained in:
John Ralls 2015-10-18 11:44:51 -07:00
parent dfc0b28bed
commit ae35dbb464

View File

@ -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 "