Fix crash when saving files.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12030 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-11-26 02:59:56 +00:00
parent 81c7f512a5
commit 0024101d57
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2005-11-25 David Hampton <hampton@employees.org>
* src/scm/main-window.scm: Fix crash when saving files.
* src/report/report-gnome/gnc-plugin-page-report.c:
* src/business/business-gnome/gnc-plugin-page-invoice.c:
* src/gnome-utils/gnc-main-window.c:

View File

@ -103,7 +103,7 @@ the account instead of opening a register.") #f))
(conf-file-name (gnc:html-encode-string book-url))
(book-path #f))
(if (conf-file-name)
(if conf-file-name
(let ((book-path (gnc:build-book-path conf-file-name)))
(with-output-to-port (open-output-file book-path)
(lambda ()