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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user