Re-enable window sensitivity if the report fails. Fixes #341610

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14178 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2006-05-24 15:53:50 +00:00
parent 55ed75588c
commit 1e9a1f874d
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-05-24 Derek Atkins <derek@ihtfp.com>
* src/report/report-gnome/window-report.c:
Re-enable window sensitivity if the report fails. Fixes #341610
2006-05-24 Christian Stimming <stimming@tuhh.de>
* configure.in: Deactivate --enable-sql because PostgreSQL backend

View File

@ -211,11 +211,18 @@ gnc_html_report_stream_cb (const char *location, char ** data, int *len)
ok = gnc_run_report_id_string (location, data);
if (!ok)
if (!ok) {
*data = g_strdup_printf ("<html><body><h3>%s</h3>"
"<p>%s</p></body></html>",
_("Report error"),
_("An error occurred while running the report."));
/* Make sure the progress bar is finished, which will also
make the GUI sensitive again. Easier to do this via guile
because otherwise we would need to link against gnome-utils
and a lot more. */
scm_c_eval_string("(gnc:report-finished)");
}
*len = strlen(*data);
return ok;