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

@ -16,6 +16,7 @@ and this project somewhat adheres to [Semantic Versioning](https://semver.org/sp
- Previously, the middle mouse button could be used as a shortcut with the pencil tool to switch to bucket-fill mode. This is now achieved using the `Alt` key.
### Fixed
- Fix crash on older versions of Qt when reopening a project with certain windows open.
- Fix potential crash when painting and the cursor leaves the map area.
- Fix rare crash while quitting Porymap.
- Fix `Edit > Clear Map Entries` in the Region Map Editor not saving the applied changes.

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;
}