AUDIT: r16836 - gnucash/trunk/src - Prevent crashing when a report template disappears (#505921).
Andrew Sackville-West
andrewsw at cvs.gnucash.org
Sun Jan 6 18:55:49 EST 2008
Author: andrewsw
Date: 2008-01-06 18:55:48 -0500 (Sun, 06 Jan 2008)
New Revision: 16836
Trac: http://svn.gnucash.org/trac/changeset/16836
Modified:
gnucash/trunk/src/app-utils/options.scm
gnucash/trunk/src/report/report-system/report.scm
Log:
Prevent crashing when a report template disappears (#505921).
If a report template is missing (renamed, moved, deleted, whatever)
while the report is still open, then the app will crash while reading
the books file. The options-generator will fail and cause subsequent
attempts to access the options to fail and crash. A couple checks for
the existence of options is all it takes. Also included a warning dialog.
BP
More information about the gnucash-patches
mailing list