From 651d860d9038a30de1453c5315eb09a95622c199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Thu, 4 Feb 2016 22:00:53 +0100 Subject: =?UTF-8?q?Don=E2=80=99t=20adjust=20time=20column=20widths=20in=20?= =?UTF-8?q?cf=5Fopen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The time column widths should not be adjusted in cf_open() because we don’t have any packets yet and Qt resizeColumnToContents() will not adjust any widths but emits a sectionResized() with invalid or default values (new_width seems to always be 32). This will in some cases (when start capturing packets) give wrong width values which is later stored in the recent file, and the time columns may end up narrow the next time the recent file is read. This fix is related to the column with issues previously compensated for in PacketList::sectionResized() (g4980d505). Change-Id: Id3b49069fe5d2b55d608cc7a6d32fe7851369bf9 Reviewed-on: https://code.wireshark.org/review/13712 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- file.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index cda78b19ed..de4b4c045b 100644 --- a/file.c +++ b/file.c @@ -358,9 +358,6 @@ cf_open(capture_file *cf, const char *fname, unsigned int type, gboolean is_temp cf->prev_cap = NULL; cf->cum_bytes = 0; - /* Adjust timestamp precision if auto is selected, col width will be adjusted */ - cf_timestamp_auto_precision(cf); - /* XXX needed ? */ packet_list_queue_draw(); cf_callback_invoke(cf_cb_file_opened, cf); -- cgit v1.2.3