From 47a5f20b3d2e6cbbf5ca46c068c2e585d0bd3f8c Mon Sep 17 00:00:00 2001 From: Gliniak Date: Wed, 9 Aug 2023 21:12:08 +0200 Subject: [PATCH] [UI] Fixed issue with random short-lived window on boot --- src/xenia/ui/qt/widgets/shell.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/xenia/ui/qt/widgets/shell.cc b/src/xenia/ui/qt/widgets/shell.cc index aff710b13f..4bac2c3ebb 100644 --- a/src/xenia/ui/qt/widgets/shell.cc +++ b/src/xenia/ui/qt/widgets/shell.cc @@ -28,13 +28,12 @@ void XShell::BuildNav() { } void XShell::BuildTabStack() { - tab_stack_ = new QStackedLayout(); + tab_stack_ = new QStackedLayout(window_); + layout_->addLayout(tab_stack_); for (XTab* tab : nav_->tabs()) { tab_stack_->addWidget(tab); } - - layout_->addLayout(tab_stack_, 1); } void XShell::TabChanged(XTab* tab) { tab_stack_->setCurrentWidget(tab); }