diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-12-10 11:05:45 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-12-10 11:05:45 +0000 |
commit | 82fd44f303be00c9de72b33690b9c311970b3fc6 (patch) | |
tree | cb70be0f17c0f0b2e8d2e4df79305dcb1db34424 | |
parent | 99295ee0d2e9af29aee265d2588193438abedd88 (diff) | |
download | wireshark-82fd44f303be00c9de72b33690b9c311970b3fc6.tar.gz wireshark-82fd44f303be00c9de72b33690b9c311970b3fc6.tar.bz2 wireshark-82fd44f303be00c9de72b33690b9c311970b3fc6.zip |
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
-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); } |