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
This commit is contained in:
Stig Bjørlykke 2008-12-10 11:05:45 +00:00
parent 99295ee0d2
commit 82fd44f303
1 changed files with 4 additions and 4 deletions

8
file.c
View File

@ -1729,10 +1729,6 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item,
we'll select the previous frame */ we'll select the previous frame */
selected_row = preceding_row; 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 /* Either the frame that was selected passed the filter, or we've
found the nearest displayed frame to that frame. Select it, make found the nearest displayed frame to that frame. Select it, make
it the focus row, and make it visible. */ 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); packet_list_set_selected_row(selected_row);
} }