r23056 - gnucash/trunk/src - Improve transaction currency lookup by using the new account_or_default currency getter.

Christian Stimming cstim at code.gnucash.org
Wed Jun 19 11:47:40 EDT 2013


Author: cstim
Date: 2013-06-19 11:47:39 -0400 (Wed, 19 Jun 2013)
New Revision: 23056
Trac: http://svn.gnucash.org/trac/changeset/23056

Modified:
   gnucash/trunk/src/app-utils/gnc-ui-util.c
   gnucash/trunk/src/gnc/dashboard.cpp
   gnucash/trunk/src/gnome-utils/dialog-account.c
   gnucash/trunk/src/gnome-utils/dialog-book-close.c
   gnucash/trunk/src/gnome-utils/dialog-transfer.c
   gnucash/trunk/src/gnome/gnc-split-reg.c
   gnucash/trunk/src/gnome/gnc-split-reg2.c
Log:
Improve transaction currency lookup by using the new account_or_default currency getter.

Previously, this could result in transactions that have a non-currency as
txn commodity, which is what the multi-currency register tried to avoid hard.
Now by using account_or_default_currency, the currency choosing policy from
the register is available in the other places where new transactions are
created, hence we better use that here.



More information about the gnucash-patches mailing list