Skip to content

Commit

Permalink
[UI] Fixed issue with random short-lived window on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
Gliniak authored and Razzile committed Aug 12, 2023
1 parent ae41a03 commit 47a5f20
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/xenia/ui/qt/widgets/shell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down

0 comments on commit 47a5f20

Please sign in to comment.