Revert "Use gnc_pricedb_has_prices instead of testing the return value of get_prices."

This reverts commit ae35dbb464.
because the return value was actually used later on.
pull/38/head
John Ralls 11 years ago
parent f5cf2ba542
commit f3de156e65

@ -164,7 +164,8 @@ remove_clicked (CommoditiesDialog *cd)
g_list_free (accounts);
pdb = gnc_pricedb_get_db (cd->book);
if (gnc_pricedb_has_prices(pdb, commodity, NULL))
prices = gnc_pricedb_get_prices(pdb, commodity, NULL);
if (prices)
{
message = _("This commodity has price quotes. Are "
"you sure you want to delete the selected "

Loading…
Cancel
Save