From ae35dbb46407762c925346975588cd58fdb60ca3 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 18 Oct 2015 11:44:51 -0700 Subject: [PATCH] Use gnc_pricedb_has_prices instead of testing the return value of get_prices. --- src/gnome/dialog-commodities.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gnome/dialog-commodities.c b/src/gnome/dialog-commodities.c index 1a0e385a4a..3f29a29e7a 100644 --- a/src/gnome/dialog-commodities.c +++ b/src/gnome/dialog-commodities.c @@ -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 "