Qt: Keep pane sizes when quit without loading a file

Change from master_split_.show() to packet_list_->show() in layoutPanes()
to avoid an issue where the pane sizes was stored with wrong values when
quit just after startup without loading a file.

This fixes a regression issue from g5ce52f74 and g7ebd5405.

Change-Id: I7ba1b5f8c9440d41d58dfd729013a0fd1e16be07
Reviewed-on: https://code.wireshark.org/review/37839
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
Stig Bjørlykke 2020-07-12 20:23:02 +02:00
parent 7f09a6fd81
commit 4fc9098830
1 changed files with 3 additions and 3 deletions

View File

@ -157,9 +157,9 @@ void MainWindow::layoutPanes()
proto_tree_->setVisible(ms_children.contains(proto_tree_) && recent.tree_view_show);
byte_view_tab_->setVisible(ms_children.contains(byte_view_tab_) && recent.byte_view_show);
// Show the master splitter here to prevent pending resize events changing packet list columns
// when the master splitter is set as current widget for the first time.
master_split_.show();
// Show the packet list here to prevent pending resize events changing columns
// when the packet list is set as current widget for the first time.
packet_list_->show();
packet_list_->thaw(true);
cur_layout_ = new_layout;