summaryrefslogtreecommitdiff
path: root/ui/qt/packet_list.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-09-17 12:37:11 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2016-09-17 20:18:05 +0000
commit6bedad69b672fdf0e67b54738edb64433938c8ae (patch)
treecf5fa703b145c77cfb1955c42c603d259dd8a4c9 /ui/qt/packet_list.cpp
parent39c3ddf8615ccc5fb54ef70dfb762ea5a022b87e (diff)
downloadwireshark-6bedad69b672fdf0e67b54738edb64433938c8ae.tar.gz
Qt: Hide columns after setting widths
In columnsChanged() the visibility must be set after setting the width to avoid that setting width overwrites visibility. This should fix hidden columns displayed during first capture. Bug: 12377 Change-Id: Idbbf36b014724970775c34b0c08803de9b006742 Reviewed-on: https://code.wireshark.org/review/17755 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/packet_list.cpp')
-rw-r--r--ui/qt/packet_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp
index 7b71866e08..82c9e38123 100644
--- a/ui/qt/packet_list.cpp
+++ b/ui/qt/packet_list.cpp
@@ -780,10 +780,10 @@ void PacketList::columnsChanged()
prefs.num_cols = g_list_length(prefs.col_list);
col_cleanup(&cap_file_->cinfo);
build_column_format_array(&cap_file_->cinfo, prefs.num_cols, FALSE);
- setColumnVisibility();
create_far_overlay_ = true;
resetColumns();
applyRecentColumnWidths();
+ setColumnVisibility();
columns_changed_ = false;
}