aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2023-03-05 12:20:34 +0100
committerJohn Thacker <johnthacker@gmail.com>2023-03-09 13:35:34 +0000
commitcc04dad6d068f2ed290b519c8952b60321e98305 (patch)
tree19aeed03212d7f33d2c56272eaec80870758aa64
parentd574cd2c24a655ac869b90666e96de99c3aba6e1 (diff)
Qt: Put p->show() before p->setVisible to allow later to take effect
Closes #18882
-rw-r--r--ui/qt/main_window_layout.cpp8
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;
}