Invalidate cf->current_row when rescan packet and the new selected row 0

has changed, to force update of packet list and packet details.

This fixes bug 3099.

svn path=/trunk/; revision=26937
This commit is contained in:
Stig Bjørlykke 2008-12-08 21:30:21 +00:00
parent bc7cb2706e
commit 076349374b
1 changed files with 4 additions and 0 deletions

4
file.c
View File

@ -1729,6 +1729,10 @@ 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;
}
}
}