Clear the dependent_of_displayed flag when there's no dfilter.  This only
helps the case when you clear a display filter before moving on to another
display filter.

svn path=/trunk/; revision=42758
This commit is contained in:
Jeff Morriss 2012-05-21 19:44:24 +00:00
parent 0ba1ab2909
commit 33c9fa1f30
1 changed files with 5 additions and 4 deletions

9
file.c
View File

@ -1131,16 +1131,17 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf,
/* This frame passed the display filter but it may depend on other
* (potentially not displayed) frames. Find those frames and mark them
* as depended upon.
*
* (We don't have to do this if we're not filtering--that is, the
* 'else' case below.)
*/
g_slist_foreach(edt.pi.dependent_frames, find_and_mark_frame_depended_upon, cf);
}
}
} else
} else {
fdata->flags.passed_dfilter = 1;
/* If there's no dfilter then there are no frame dependencies */
fdata->flags.dependent_of_displayed = 0;
}
if(fdata->flags.passed_dfilter || fdata->flags.ref_time)
cf->displayed_count++;