diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2020-07-12 20:23:02 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2020-07-13 16:16:25 +0000 |
commit | 4fc9098830e034188d027c9bd32c28ef1acf30da (patch) | |
tree | e8709c25b637e6524cec8d5c2f62636575e77ba6 /ui | |
parent | 7f09a6fd8151952a6e53d7c189df34a173ba1b47 (diff) |
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/main_window_layout.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/qt/main_window_layout.cpp b/ui/qt/main_window_layout.cpp index aa0db6d71d..741a563301 100644 --- a/ui/qt/main_window_layout.cpp +++ b/ui/qt/main_window_layout.cpp @@ -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; |