From 70996dc669305da1c5f7a305d67b5976fde75073 Mon Sep 17 00:00:00 2001 From: cheloftus Date: Wed, 28 Jun 2017 22:52:41 +0100 Subject: Qt: add preference to restore display filter after Follow Stream Added new user preference 'restore_filter_after_following_stream', defaults to false. When true, the current display filter is restored after following a stream. Change-Id: I153107761003658c6d7f1464711da7b3adeb60a8 Reviewed-on: https://code.wireshark.org/review/22455 Reviewed-by: Peter Wu Petri-Dish: Peter Wu Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- ui/qt/follow_stream_dialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/qt') diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp index d7af6b7ee5..6e0bf460b4 100644 --- a/ui/qt/follow_stream_dialog.cpp +++ b/ui/qt/follow_stream_dialog.cpp @@ -950,6 +950,11 @@ bool FollowStreamDialog::follow(QString previous_filter, bool use_stream_index, updateWidgets(false); endRetapPackets(); + + if (prefs.restore_filter_after_following_stream) { + emit updateFilter(previous_filter_, TRUE); + } + return true; } -- cgit v1.2.3