mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-28 19:46:14 -05:00
Fix project reload not disabling window on failure
This commit is contained in:
@@ -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 Porymap reporting errors for macros it doesn't use.
|
||||
- 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
|
||||
### Added
|
||||
|
||||
@@ -643,7 +643,8 @@ void MainWindow::on_action_Reload_Project_triggered() {
|
||||
warning.setIcon(QMessageBox::Warning);
|
||||
|
||||
if (warning.exec() == QMessageBox::Ok) {
|
||||
openProject(editor->project->root);
|
||||
if (!openProject(editor->project->root))
|
||||
setWindowDisabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user