From 0b49342156ba7fa116867e6bb5f6643baa0e368c Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Fri, 23 Mar 2018 17:54:50 +0100 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte --- ui/qt/wireshark_application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui') 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; -- cgit v1.2.3