Skip to content

Commit cf93fcc

Browse files
committed
[UI] Fixed issue with random short-lived window on boot
1 parent 275c4cd commit cf93fcc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/xenia/ui/qt/widgets/shell.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ void XShell::BuildNav() {
2828
}
2929

3030
void XShell::BuildTabStack() {
31-
tab_stack_ = new QStackedLayout();
31+
tab_stack_ = new QStackedLayout(window_);
32+
layout_->addLayout(tab_stack_);
3233

3334
for (XTab* tab : nav_->tabs()) {
3435
tab_stack_->addWidget(tab);
3536
}
36-
37-
layout_->addLayout(tab_stack_, 1);
3837
}
3938

4039
void XShell::TabChanged(XTab* tab) { tab_stack_->setCurrentWidget(tab); }

0 commit comments

Comments
 (0)