Fix some QPointers not clearing promptly in Qt5
Some checks failed
Build Porymap / build-linux (5.14.2) (push) Has been cancelled
Build Porymap / build-linux (6.8.2) (push) Has been cancelled
Build Porymap / build-macos (macos-15-intel) (push) Has been cancelled
Build Porymap / build-macos (macos-latest) (push) Has been cancelled
Build Porymap / build-static-windows (push) Has been cancelled

This commit is contained in:
GriffinR
2025-11-23 22:52:50 -05:00
parent e02ec2b695
commit c7e417b044
2 changed files with 2 additions and 1 deletions

View File

@@ -3246,7 +3246,7 @@ bool MainWindow::closeSupplementaryWindows() {
// We have some QPointers to windows that may have been closed above.
// Make sure we force them to update to nullptr now; they may be read
// before the next event loop gets a chance to update them.
QApplication::sendPostedEvents();
QApplication::sendPostedEvents(nullptr, QEvent::DeferredDelete);
return true;
}