AUDIT: r14546 - gnucash/trunk/src/report/report-system - Change cmdline warning into an actual user's error dialog.

Christian Stimming cstim at cvs.gnucash.org
Thu Jul 20 10:34:41 EDT 2006


Author: cstim
Date: 2006-07-20 10:34:35 -0400 (Thu, 20 Jul 2006)
New Revision: 14546
Trac: http://svn.gnucash.org/trac/changeset/14546

Modified:
   gnucash/trunk/src/report/report-system/report.scm
Log:
Change cmdline warning into an actual user's error dialog.
BP


Modified: gnucash/trunk/src/report/report-system/report.scm
===================================================================
--- gnucash/trunk/src/report/report-system/report.scm	2006-07-20 01:14:55 UTC (rev 14545)
+++ gnucash/trunk/src/report/report-system/report.scm	2006-07-20 14:34:35 UTC (rev 14546)
@@ -98,8 +98,10 @@
 	      (hash-set! *gnc:_report-templates_*
 			 (gnc:report-template-name report-rec) report-rec)
 	      (begin
-		(gnc:error (_ "Refusing to add custom report with the same name as an existing report."))
-		(gnc:error (_ "Please edit your saved-reports file and delete the section for: " name))
+		;; FIXME: We should pass the top-level window
+		;; instead of the #f to gnc:error-dialog, but I
+		;; have no idea where to get it from.
+		(gnc:error-dialog #f (string-append (_ "A custom report with this name already exists. Either rename the report to store it with a different name, or edit your saved-reports file and delete the section with the following name: ") name ))
 		)))
         (gnc:warn "gnc:define-report: bad report"))))
 



More information about the gnucash-changes mailing list