Fix problem with "Print" report formats that was introduced with the last change to the report system.
svn: r16854
This commit is contained in:
parent
4002b1d4d1
commit
24767462ca
@ -691,9 +691,16 @@ def report(dbstate, uistate, person, report_class, options_class,
|
||||
MyReport.write_report()
|
||||
MyReport.end_report()
|
||||
|
||||
_run_long_process_in_thread(do_report, dialog.raw_name)
|
||||
|
||||
if dialog.open_with_app.get_active():
|
||||
if dialog.open_with_app.get_sensitive() == False:
|
||||
# This is a work around for the GtkPrint report which
|
||||
# uses GTK. The print dialog interferes with the progress
|
||||
# bar. So the progress bar should not be used.
|
||||
do_report()
|
||||
else:
|
||||
_run_long_process_in_thread(do_report, dialog.raw_name)
|
||||
|
||||
if dialog.open_with_app.get_active() and \
|
||||
dialog.open_with_app.get_sensitive():
|
||||
open_file_with_default_application(dialog.options.get_output())
|
||||
|
||||
except Errors.FilterError, msg:
|
||||
|
Loading…
Reference in New Issue
Block a user