Fix for bug #1140: Filtering messes up packet list sort order
svn path=/trunk/; revision=20394
This commit is contained in:
parent
efa6338231
commit
cbe42b8a24
3
file.c
3
file.c
|
@ -1551,6 +1551,9 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item,
|
|||
prev_frame = fdata;
|
||||
}
|
||||
|
||||
/* Re-sort the list using the previously selected order */
|
||||
packet_list_set_sort_column();
|
||||
|
||||
if (redissect) {
|
||||
/* Clear out what remains of the visited flags and per-frame data
|
||||
pointers.
|
||||
|
|
|
@ -893,3 +893,16 @@ packet_list_get_sort_column(void)
|
|||
{
|
||||
return ETH_CLIST(packet_list)->sort_column;
|
||||
}
|
||||
|
||||
/* Re-sort the clist by the previously selected sort */
|
||||
void
|
||||
packet_list_set_sort_column(void)
|
||||
{
|
||||
packet_list_freeze();
|
||||
|
||||
eth_clist_set_sort_column(ETH_CLIST(packet_list), packet_list_get_sort_column());
|
||||
|
||||
eth_clist_sort(ETH_CLIST(packet_list));
|
||||
|
||||
packet_list_thaw();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue