diff options
Diffstat (limited to 'src/commodity.cc')
-rw-r--r-- | src/commodity.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commodity.cc b/src/commodity.cc index 900fe07d..37f0b573 100644 --- a/src/commodity.cc +++ b/src/commodity.cc @@ -407,7 +407,10 @@ commodity_t::check_for_updated_price(const optional<price_point_t>& point, "attempting to download a more current quote..."); if (optional<price_point_t> quote = parent().get_commodity_quote(*this, in_terms_of)) { - return quote; + if (! in_terms_of || + (quote->price.has_commodity() && + quote->price.commodity() == *in_terms_of)) + return quote; } } } |