/* Given a frame_data structure, scroll to and select the row in the packet list corresponding to that frame. If there is no such row, return FALSE, otherwise return TRUE.  */
gboolean packet_list_select_row_from_data(frame_data *fdata_needle)
/* Given a frame_data structure, scroll to and select the row in the packet list corresponding to that frame. If there is no such row, return FALSE, otherwise return TRUE.  */
gboolean packet_list_select_row_from_data(frame_data *fdata_needle)
{
    gbl_cur_packet_list->packetListModel()->flushVisibleRows();
    int row = gbl_cur_packet_list->packetListModel()->visibleIndexOf(fdata_needle);
    if (row >= 0) {
        gbl_cur_packet_list->setCurrentIndex(gbl_cur_packet_list->packetListModel()->index(row,0));
        return TRUE;
    }
    return FALSE;
}