diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-12-10 11:05:45 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-12-10 11:05:45 +0000 |
commit | 212f5a43109d8be27e68dbc59079506c5d610721 (patch) | |
tree | cb70be0f17c0f0b2e8d2e4df79305dcb1db34424 /file.c | |
parent | e86688f5425f0d28496c5250300aeab6c9d42916 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26959 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |