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() {
|
void MainWindow::dismissStartPage() {
|
||||||
if (!m_startPage) return;
|
if (!m_startPage) return;
|
||||||
m_startPage->close();
|
auto* sp = m_startPage;
|
||||||
m_startPage->deleteLater();
|
m_startPage = nullptr; // null first — close() may re-enter via rejected signal
|
||||||
m_startPage = nullptr;
|
sp->close();
|
||||||
|
sp->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace rcx
|
} // namespace rcx
|
||||||
|
|||||||
Reference in New Issue
Block a user