Change cmdline warning into an actual user's error dialog.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14546 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming
2006-07-20 14:34:35 +00:00
parent c9b30b2cf9
commit fa525462c6
+4 -2
View File
@@ -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"))))