mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
55ed75588c
commit
1e9a1f874d
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user