r16977 - gnucash/branches/2.2/src - [r16836] Prevent crashing when a report template disappears (#505921).

Andreas Köhler andi5 at cvs.gnucash.org
Fri Feb 29 16:00:09 EST 2008


Author: andi5
Date: 2008-02-29 16:00:08 -0500 (Fri, 29 Feb 2008)
New Revision: 16977
Trac: http://svn.gnucash.org/trac/changeset/16977

Modified:
   gnucash/branches/2.2/src/app-utils/options.scm
   gnucash/branches/2.2/src/report/report-system/report.scm
Log:
[r16836] 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.

Committed by andrewsw.




More information about the gnucash-patches mailing list