Show dialog on successful report save. #450984

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16221 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2007-06-27 20:33:41 +00:00
parent ea198a90a2
commit c160569737

View File

@ -406,7 +406,17 @@
(begin
(display saved-form
(open-file conf-file-name "a"))
(force-output)))))
(force-output)
(let ((report-name (gnc:report-name report)))
(gnc-info-dialog
'()
(sprintf
#f (_ "Your report \"%s\" has been saved into the configuration file \"%s\". The report will be available in the menu Reports -> Custom at the next startup of GnuCash.")
(if (and report-name (not (string-null? report-name)))
(gnc:gettext report-name)
(gnc:gettext "Untitled"))
conf-file-name)))
))))
;; gets the renderer from the report template;
;; gets the stylesheet from the report;