[Gnucash-changes] r14359 - gnucash/trunk - Tell gnucash that a currency quote failed instead of just abandoning

David Hampton hampton at cvs.gnucash.org
Tue Jun 13 20:05:01 EDT 2006


Author: hampton
Date: 2006-06-13 20:04:59 -0400 (Tue, 13 Jun 2006)
New Revision: 14359
Trac: http://svn.gnucash.org/trac/changeset/14359

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/quotes/gnc-fq-helper.in
Log:
Tell gnucash that a currency quote failed instead of just abandoning
the request.  Fixes #344546.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-06-13 03:17:48 UTC (rev 14358)
+++ gnucash/trunk/ChangeLog	2006-06-14 00:04:59 UTC (rev 14359)
@@ -1,3 +1,8 @@
+2006-06-13  David Hampton  <hampton at employees.org>
+
+	* 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  <hampton at employees.org>
 
 	* src/engine/Account.c: When committing an account during the

Modified: gnucash/trunk/src/quotes/gnc-fq-helper.in
===================================================================
--- gnucash/trunk/src/quotes/gnc-fq-helper.in	2006-06-13 03:17:48 UTC (rev 14358)
+++ gnucash/trunk/src/quotes/gnc-fq-helper.in	2006-06-14 00:04:59 UTC (rev 14359)
@@ -341,9 +341,8 @@
     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;



More information about the gnucash-changes mailing list