From 488af225ccfd4de2808f5ad38bb4c4823f78835e Mon Sep 17 00:00:00 2001 From: David Hampton Date: Wed, 14 Jun 2006 00:04:59 +0000 Subject: [PATCH] Tell gnucash that a currency quote failed instead of just abandoning the request. Fixes #344546. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14359 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 5 +++++ src/quotes/gnc-fq-helper.in | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fd7441369c..a47152eeff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-13 David Hampton + + * src/quotes/gnc-fq-helper.in: Tell gnucash that a currency quote + failed instead of just abandoning the request. Fixes #344546. + 2006-06-12 David Hampton * src/engine/Account.c: When committing an account during the diff --git a/src/quotes/gnc-fq-helper.in b/src/quotes/gnc-fq-helper.in index 3cdfcc5b62..439f2f5a87 100644 --- a/src/quotes/gnc-fq-helper.in +++ b/src/quotes/gnc-fq-helper.in @@ -341,9 +341,8 @@ while(<>) { last unless $to_currency; my $price = $quoter->currency($from_currency, $to_currency); - last unless $price; - $quote_data{$from_currency, "success"} = 1; + $quote_data{$from_currency, "success"} = defined($price); $quote_data{$from_currency, "symbol"} = $from_currency; $quote_data{$from_currency, "currency"} = $to_currency; $quote_data{$from_currency, "last"} = $price;