From 9a7e67d712800beca0c570b11c742cde72a27d4a Mon Sep 17 00:00:00 2001 From: sfisher Date: Thu, 11 Jan 2007 06:36:14 +0000 Subject: Fix for bug #1196: packet detail & packet bytes windows not updated under certain circumstances when applying a display filter that does not include the currently selected packet. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20389 f5534014-38df-0310-8fa8-9805f1628bb7 --- file.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'file.c') diff --git a/file.c b/file.c index 987140248f..0f3f23e219 100644 --- a/file.c +++ b/file.c @@ -1603,6 +1603,10 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item, have to select the first displayed frame after the selected frame. */ selected_row = following_row; + } else { + /* Frames before and after the selected frame passed the filter, so + we'll select the previous frame */ + selected_row = preceding_row; } } } -- cgit v1.2.3