From f3de156e65d04befb2dd08353c01940c186001a7 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 27 Oct 2015 14:08:59 -0700 Subject: [PATCH] Revert "Use gnc_pricedb_has_prices instead of testing the return value of get_prices." This reverts commit ae35dbb46407762c925346975588cd58fdb60ca3. because the return value was actually used later on. --- src/gnome/dialog-commodities.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gnome/dialog-commodities.c b/src/gnome/dialog-commodities.c index 3f29a29e7a..1a0e385a4a 100644 --- a/src/gnome/dialog-commodities.c +++ b/src/gnome/dialog-commodities.c @@ -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 "