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:
TheKodeToad 2025-03-25 16:31:41 +00:00
parent 18ee1f897a
commit 481a1d222c
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E

View file

@ -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()