Fix project reload not disabling window on failure
This commit is contained in:
parent
e0c6621abc
commit
59f365b16d
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue