diff options
author | Peter Wu <peter@lekensteyn.nl> | 2018-03-23 17:54:50 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2018-03-23 19:41:39 +0000 |
commit | 0b49342156ba7fa116867e6bb5f6643baa0e368c (patch) | |
tree | f7daabe7e929b66bc6db6f1b3ce94395cdef11ed /ui/qt | |
parent | e80437661246638ece4037221196069db9249a93 (diff) |
Qt: ensure that taps are invoked on reload/rescan
Invoke the tap draw callback immediately after reloading a capture (or
changing a display filter) rather than waiting for a timer to expire.
Change-Id: I3d1549d1a18c8e173cd29d45f31ce7586e0d70fe
Reviewed-on: https://code.wireshark.org/review/26600
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/wireshark_application.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/wireshark_application.cpp b/ui/qt/wireshark_application.cpp index 87399a37db..5e110f850a 100644 --- a/ui/qt/wireshark_application.cpp +++ b/ui/qt/wireshark_application.cpp @@ -1366,10 +1366,11 @@ void WiresharkApplication::captureEventHandler(CaptureEvent * ev) break; #endif case CaptureEvent::File: + case CaptureEvent::Reload: + case CaptureEvent::Rescan: switch ( ev->eventType() ) { case CaptureEvent::Started: - // Doesn't appear to do anything. Logic probably needs to be in file.c. QTimer::singleShot(TAP_UPDATE_DEFAULT_INTERVAL / 5, this, SLOT(updateTaps())); QTimer::singleShot(TAP_UPDATE_DEFAULT_INTERVAL / 2, this, SLOT(updateTaps())); break; |