aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/follow_stream_dialog.cpp
diff options
context:
space:
mode:
authorcheloftus <cheloftus@gmail.com>2017-06-28 22:52:41 +0100
committerAnders Broman <a.broman58@gmail.com>2017-10-04 03:59:38 +0000
commit70996dc669305da1c5f7a305d67b5976fde75073 (patch)
tree71926bc3c4f962672d0c4ad6ad66702b44914e51 /ui/qt/follow_stream_dialog.cpp
parent0553cda6dab3f69ccd32adb6d60723e9baf56d4a (diff)
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 <peter@lekensteyn.nl> Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/follow_stream_dialog.cpp')
-rw-r--r--ui/qt/follow_stream_dialog.cpp5
1 files changed, 5 insertions, 0 deletions
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;
}