Epan+Qt: Invalidate cached column strings.
authorGerald Combs <gerald@wireshark.org>
Thu, 8 Mar 2018 23:17:58 +0000 (15:17 -0800)
committerRoland Knall <rknall@gmail.com>
Thu, 15 Mar 2018 12:19:23 +0000 (12:19 +0000)
commitbbe5fc102821cc3fa9e661078311f681501025ef
treeb61de63e63e01e4b55d59dd7ba4d46db6b484bb4
parent03af5553eb1aaf38b2053e8b83a2be60097306d8
Epan+Qt: Invalidate cached column strings.

Add col_data_changed, which checks to see if we have updated column
info. Add col_append_frame_number, which adds a frame number and sets
col_data_changed. Call col_append_frame_number instead of
col_append_fstr from some dissectors.

Add PacketListRecord::invalidateAllRecords, which invalidates any cached
record data. Add PacketListModel::invalidateAllColumnStrings which calls
invalidateAllRecords and signals that our data has changed. Call
invalidateAllColumnStrings when we have new name resolution or column
information.

Bug: 11414
Bug: 11468
Change-Id: I2671594a722f4f9436fe1df84d43489a148e0cee
Reviewed-on: https://code.wireshark.org/review/26373
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
18 files changed:
debian/libwireshark0.symbols
epan/column-utils.c
epan/column-utils.h
epan/dissectors/packet-bthci_acl.c
epan/dissectors/packet-btl2cap.c
epan/dissectors/packet-icmp.c
epan/dissectors/packet-icmpv6.c
epan/dissectors/packet-ip.c
epan/dissectors/packet-iso15765.c
epan/dissectors/packet-ltp.c
epan/dissectors/packet-reload.c
ui/qt/models/packet_list_model.cpp
ui/qt/models/packet_list_model.h
ui/qt/models/packet_list_record.cpp
ui/qt/models/packet_list_record.h
ui/qt/packet_list.cpp
ui/qt/wireshark_application.cpp
ui/qt/wireshark_application.h