[Gnucash-changes] r14178 - gnucash/trunk - Re-enable window
sensitivity if the report fails. Fixes #341610
Derek Atkins
warlord at cvs.gnucash.org
Wed May 24 11:53:51 EDT 2006
Author: warlord
Date: 2006-05-24 11:53:50 -0400 (Wed, 24 May 2006)
New Revision: 14178
Trac: http://svn.gnucash.org/trac/changeset/14178
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/report/report-gnome/window-report.c
Log:
Re-enable window sensitivity if the report fails. Fixes #341610
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-05-24 15:42:29 UTC (rev 14177)
+++ gnucash/trunk/ChangeLog 2006-05-24 15:53:50 UTC (rev 14178)
@@ -1,3 +1,8 @@
+2006-05-24 Derek Atkins <derek at 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 at tuhh.de>
* configure.in: Deactivate --enable-sql because PostgreSQL backend
Modified: gnucash/trunk/src/report/report-gnome/window-report.c
===================================================================
--- gnucash/trunk/src/report/report-gnome/window-report.c 2006-05-24 15:42:29 UTC (rev 14177)
+++ gnucash/trunk/src/report/report-gnome/window-report.c 2006-05-24 15:53:50 UTC (rev 14178)
@@ -211,11 +211,18 @@
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;
More information about the gnucash-changes
mailing list