Fix use after free
If any page apply methods return false, the launcher breaks when opening an instance window for the second time Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
18ee1f897a
commit
481a1d222c
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ bool GlobalDataPackPage::shouldDisplay() const
|
|||
|
||||
bool GlobalDataPackPage::apply()
|
||||
{
|
||||
return m_underlyingPage != nullptr && m_underlyingPage->apply();
|
||||
return m_underlyingPage == nullptr || m_underlyingPage->apply();
|
||||
}
|
||||
|
||||
void GlobalDataPackPage::openedImpl()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue