diff options
author | Gerald Combs <gerald@wireshark.org> | 2014-06-16 13:56:06 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-06-16 21:31:12 +0000 |
commit | 7f6ebece151be95ee6703f7bd1e27ab47377b750 (patch) | |
tree | bd59d8f9530b75c27309477b8e5031c0becaf9cf /ui/qt | |
parent | aeb1888a505cf3783a79bf009ae651d0efb3957e (diff) |
Hide hidden columns in Qt.
Change-Id: I1da0d95c606eb2f17c03874f20d38b9a7ba9e8ee
Reviewed-on: https://code.wireshark.org/review/2278
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/packet_list.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp index 40e2625ccc..f634af6224 100644 --- a/ui/qt/packet_list.cpp +++ b/ui/qt/packet_list.cpp @@ -502,7 +502,6 @@ void PacketList::contextMenuEvent(QContextMenuEvent *event) act->setEnabled(is_udp); } - if ((cap_file_ != NULL) && act->text().contains("SSL")) { if (epan_dissect_packet_contains_field(cap_file_->edt, "ssl")) @@ -580,6 +579,11 @@ void PacketList::updateAll() { } packet_list_model_->resetColumns(); + + for (int i = 0; i < cap_file_->cinfo.num_cols; i++) { + setColumnHidden(i, !get_column_visible(i)); + } + } void PacketList::freeze() |