Perry Smith's Null Account patch.

* src/import-export/qif-import/qif-dialog-utils.scm:
	  Perry Smith's Null Account Patch.  Make sure the security is
	  a real string before appending an account separator, so we
	  don't try to create a "null" account.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10222 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2004-08-19 19:59:10 +00:00
parent 0bc9bfb411
commit 4ae7a36f35
2 changed files with 10 additions and 2 deletions

View File

@ -9,6 +9,11 @@
Small documentation tweak to make QofEntity and QofParam
structures visible to doxygen.
* src/import-export/qif-import/qif-dialog-utils.scm:
Perry Smith's Null Account Patch. Make sure the security is
a real string before appending an account separator, so we
don't try to create a "null" account.
2004-08-19 Derek Atkins <derek@ihtfp.com>
* configure.in: change the gtkhtml order to search for >= 1.1 before

View File

@ -18,8 +18,11 @@
(define (default-interest-acct brokerage security)
(string-append (_ "Interest") (gnc:account-separator-char)
brokerage (gnc:account-separator-char)
security))
brokerage
(if (string=? security "")
""
(string-append (gnc:account-separator-char)
security))))
(define (default-capital-return-acct brokerage security)
(string-append (_ "Cap Return") (gnc:account-separator-char)