Fix project reload not disabling window on failure

This commit is contained in:
GriffinR 2023-12-19 12:46:47 -05:00
parent e0c6621abc
commit 59f365b16d
2 changed files with 3 additions and 1 deletions

View file

@ -43,6 +43,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d
- Fix some issues when too few/many pokémon are specified for a wild encounter group. - Fix some issues when too few/many pokémon are specified for a wild encounter group.
- Fix Porymap reporting errors for macros it doesn't use. - Fix Porymap reporting errors for macros it doesn't use.
- Fix painting on the Collision tab with the opacity slider at 0 painting metatiles. - Fix painting on the Collision tab with the opacity slider at 0 painting metatiles.
- Fix crashes when File->Reload Project fails.
## [5.1.1] - 2023-02-20 ## [5.1.1] - 2023-02-20
### Added ### Added

View file

@ -643,7 +643,8 @@ void MainWindow::on_action_Reload_Project_triggered() {
warning.setIcon(QMessageBox::Warning); warning.setIcon(QMessageBox::Warning);
if (warning.exec() == QMessageBox::Ok) { if (warning.exec() == QMessageBox::Ok) {
openProject(editor->project->root); if (!openProject(editor->project->root))
setWindowDisabled(true);
} }
} }