path: root/file.c
diff options
authorGerald Combs <gerald@wireshark.org>2015-09-18 11:31:16 -0700
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2015-09-20 09:47:04 +0000
commit3a351b685bb4034dd0ec843b596b2bd33382e72f (patch)
treec3109098e2ebfd455bc326f581426e4e7c6fa571 /file.c
parent587e93a55e6d58076c76f3c611dab002c34001e6 (diff)
Call cf_cb_file_rescan_* callbacks in rescan_packets.
We call cf_cb_file_rescan_{started,finished} in rescan_file. Do the same in rescan_packets. In the Qt UI this ensures that flushVisibleRows gets called so that packet_list_select_row_from_data works as expected. Change-Id: I425b7beb0f97a7d5b84c979fca65b877673b4722 Reviewed-on: https://code.wireshark.org/review/10569 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'file.c')
1 files changed, 4 insertions, 0 deletions
diff --git a/file.c b/file.c
index ce209ba466..fdbd4073e4 100644
--- a/file.c
+++ b/file.c
@@ -1651,6 +1651,8 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item, gb
cf->prev_cap = NULL;
cf->cum_bytes = 0;
+ cf_callback_invoke(cf_cb_file_rescan_started, cf);
/* Update the progress bar when it gets to this value. */
progbar_nextstep = 0;
/* When we reach the value that triggers a progress bar update,
@@ -1816,6 +1818,8 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item, gb
+ cf_callback_invoke(cf_cb_file_rescan_finished, cf);
if (selected_frame_num == -1) {
/* The selected frame didn't pass the filter. */
if (selected_frame == NULL) {