diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-07-29 10:36:46 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-07-29 20:45:48 +0000 |
commit | a03a43bd320ceeaae9f2dfa2f15213dced579d17 (patch) | |
tree | d3e718a58db275b87193fff9d0b4909d31bab0f5 /ui/qt/capture_file.h | |
parent | 5b856134f66f96d1073dd95df9c213cc41869706 (diff) |
Capture file retapping fixups.
Add CaptureFile::delayedRetapPackets, which starts retapping after the
current batch of UI event are processed. Call it in the constructors of
various dialogs so that they are shown before tapping starts.
This *might* fix a crash found when following large streams from the
Conversations dialog.
Change-Id: If1b87491621ab7efcc0519f95891d34dcd9d18c1
Reviewed-on: https://code.wireshark.org/review/9818
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/capture_file.h')
-rw-r--r-- | ui/qt/capture_file.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/ui/qt/capture_file.h b/ui/qt/capture_file.h index a4b77fdaaf..430933e76f 100644 --- a/ui/qt/capture_file.h +++ b/ui/qt/capture_file.h @@ -68,10 +68,6 @@ public: */ const QString fileName(); - /** Retap the capture file - */ - void retapPackets(); - /** Re;load the capture file */ void reload(); @@ -107,11 +103,26 @@ signals: void captureCaptureFailed(capture_session *cap_session); public slots: + /** Retap the capture file. Convenience wrapper for cf_retap_packets. + * Application events are processed periodically via update_progress_dlg. + */ + void retapPackets(); + + /** Retap the capture file after the current batch of application events + * is processed. If you call this instead of retapPackets or + * cf_retap_packets in a dialog's constructor it will be displayed before + * tapping starts. + */ + void delayedRetapPackets(); + /** Cancel any tapping that might be in progress. */ void stopLoading(); - // XXX Not used. + /** Sets the capture file's "stop_flag" member. + * + * @param stop_flag If true, stops the current capture file operation. + */ void setCaptureStopFlag(bool stop_flag = true); private: |