r16221 - gnucash/trunk/src/report/report-system - Show dialog on successful report save. #450984

Christian Stimming cstim at cvs.gnucash.org
Wed Jun 27 16:33:42 EDT 2007


Author: cstim
Date: 2007-06-27 16:33:41 -0400 (Wed, 27 Jun 2007)
New Revision: 16221
Trac: http://svn.gnucash.org/trac/changeset/16221

Modified:
   gnucash/trunk/src/report/report-system/report.scm
Log:
Show dialog on successful report save. #450984

Modified: gnucash/trunk/src/report/report-system/report.scm
===================================================================
--- gnucash/trunk/src/report/report-system/report.scm	2007-06-27 19:41:31 UTC (rev 16220)
+++ gnucash/trunk/src/report/report-system/report.scm	2007-06-27 20:33:41 UTC (rev 16221)
@@ -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;



More information about the gnucash-changes mailing list