[Gnucash-changes] Perry Smith's Null Account patch.

Derek Atkins warlord at cvs.gnucash.org
Thu Aug 19 15:59:03 EDT 2004


Log Message:
-----------
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.

Tags:
----
gnucash-1-8-branch

Modified Files:
--------------
    gnucash:
        ChangeLog
    gnucash/src/import-export/qif-import:
        qif-dialog-utils.scm

Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1461.2.349
retrieving revision 1.1461.2.350
diff -LChangeLog -LChangeLog -u -r1.1461.2.349 -r1.1461.2.350
--- ChangeLog
+++ ChangeLog
@@ -4,6 +4,11 @@
 	  < 1.1, in order to try to fix #84707 on systems with multiple
 	  versions of gtkhtml.
 
+	* 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-11  Derek Atkins  <derek at ihtfp.com>
 
 	* src/gnome/gnucash.desktop.in: make the desktop HIG compliant.
Index: qif-dialog-utils.scm
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/qif-import/qif-dialog-utils.scm,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -Lsrc/import-export/qif-import/qif-dialog-utils.scm -Lsrc/import-export/qif-import/qif-dialog-utils.scm -u -r1.3 -r1.3.2.1
--- src/import-export/qif-import/qif-dialog-utils.scm
+++ src/import-export/qif-import/qif-dialog-utils.scm
@@ -19,8 +19,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) 


More information about the gnucash-changes mailing list