mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
fix: crash in dismissStartPage due to re-entrant close/rejected signal
This commit is contained in:
@@ -4010,9 +4010,10 @@ void MainWindow::showStartPage() {
|
||||
|
||||
void MainWindow::dismissStartPage() {
|
||||
if (!m_startPage) return;
|
||||
m_startPage->close();
|
||||
m_startPage->deleteLater();
|
||||
m_startPage = nullptr;
|
||||
auto* sp = m_startPage;
|
||||
m_startPage = nullptr; // null first — close() may re-enter via rejected signal
|
||||
sp->close();
|
||||
sp->deleteLater();
|
||||
}
|
||||
|
||||
} // namespace rcx
|
||||
|
||||
Reference in New Issue
Block a user