aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-12-10 11:05:45 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-12-10 11:05:45 +0000
commit82fd44f303be00c9de72b33690b9c311970b3fc6 (patch)
treecb70be0f17c0f0b2e8d2e4df79305dcb1db34424 /file.c
parent99295ee0d2e9af29aee265d2588193438abedd88 (diff)
Moved invalidation of cf->current_row when rescan packet to catch more cases
where packet list and packet details should be updated for row 0. svn path=/trunk/; revision=26959
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/file.c b/file.c
index b737fd1bb2..799130b615 100644
--- a/file.c
+++ b/file.c
@@ -1729,10 +1729,6 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item,
we'll select the previous frame */
selected_row = preceding_row;
}
- if (selected_row == 0) {
- /* Set to invalid to force update of packet list and packet details */
- cf->current_row = -1;
- }
}
}
@@ -1743,6 +1739,10 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item,
/* Either the frame that was selected passed the filter, or we've
found the nearest displayed frame to that frame. Select it, make
it the focus row, and make it visible. */
+ if (selected_row == 0) {
+ /* Set to invalid to force update of packet list and packet details */
+ cf->current_row = -1;
+ }
packet_list_set_selected_row(selected_row);
}