diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-02-29 18:52:52 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-03-01 02:53:44 +0000 |
commit | c73cf3cd00c1fb144e67ef79ea55be41993b79be (patch) | |
tree | 19a5343fab0b5abeb2832417f20cd7af78642dae /file.h | |
parent | c0b29fcddd6eb9c7956ff63836a71a1d90169daa (diff) |
Don't show a progress bar when previewing for the Qt print dialog.
We don't do much work to do that - we don't print anything before the
first selected page, and once we're finished generating that page, we
terminate the printing process - so it shouldn't need a progress bar.
(If it needs a progress bar, We Have A Problem, as that slows down the
drawing of the dialog box.)
This should prevent the problem seen in bug 12040.
Bug: 12040
Change-Id: I129191e06fff3e1eb59a9631c7395b9e7f650809
Reviewed-on: https://code.wireshark.org/review/14255
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -420,9 +420,11 @@ void cf_timestamp_auto_precision(capture_file *cf); * * @param cf the capture file * @param print_args the arguments what and how to print + * @param show_progress_bar TRUE if a progress bar is to be shown * @return one of cf_print_status_t */ -cf_print_status_t cf_print_packets(capture_file *cf, print_args_t *print_args); +cf_print_status_t cf_print_packets(capture_file *cf, print_args_t *print_args, + gboolean show_progress_bar); /** * Print (export) the capture file into PDML format. |