diff options
-rw-r--r-- | ui/qt/main_window_layout.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/qt/main_window_layout.cpp b/ui/qt/main_window_layout.cpp index 9f2aa175e9..770b512f4c 100644 --- a/ui/qt/main_window_layout.cpp +++ b/ui/qt/main_window_layout.cpp @@ -151,6 +151,10 @@ void MainWindow::layoutPanes() parents[1]->addWidget(getLayoutWidget(prefs.gui_layout_content_2)); parents[2]->addWidget(getLayoutWidget(prefs.gui_layout_content_3)); + // 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(); + const QList<QWidget *> ms_children = master_split_.findChildren<QWidget *>(); extra_split_.setVisible(ms_children.contains(&extra_split_)); @@ -159,10 +163,6 @@ void MainWindow::layoutPanes() byte_view_tab_->setVisible(ms_children.contains(byte_view_tab_) && recent.byte_view_show); packet_diagram_->setVisible(ms_children.contains(packet_diagram_) && recent.packet_diagram_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; } |