qt: clear tree and bytes when no packet selected
Otherwise trying to interact with them will cause all sorts of funny crashes. There's probably a better way to trigger these (having the widgets register for a signal, and sending that signal, or something something something) but this works and I don't feel like reading 20 pages of Qt documentation right this instant. Change-Id: Ic52806ae5ba8d7776f835695590559b8c705d083 Ping-Bug: 10896 Reviewed-on: https://code.wireshark.org/review/6803 Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
parent
a835c85e3d
commit
ee320ef1bf
|
@ -654,6 +654,10 @@ void PacketList::thaw()
|
|||
setModel(packet_list_model_);
|
||||
setUpdatesEnabled(true);
|
||||
setColumnVisibility();
|
||||
if (packet_list_model_->rowCount() == 0) {
|
||||
proto_tree_->clear();
|
||||
byte_view_tab_->clear();
|
||||
}
|
||||
}
|
||||
|
||||
void PacketList::clear() {
|
||||
|
|
Loading…
Reference in New Issue