diff --git a/forms/projectsettingseditor.ui b/forms/projectsettingseditor.ui
index 7980e017..7fac991d 100644
--- a/forms/projectsettingseditor.ui
+++ b/forms/projectsettingseditor.ui
@@ -282,6 +282,9 @@
The file that will be used to populate the Prefabs tab
+
+ prefabs.json
+
-
diff --git a/src/ui/projectsettingseditor.cpp b/src/ui/projectsettingseditor.cpp
index 45f79579..ceb16834 100644
--- a/src/ui/projectsettingseditor.cpp
+++ b/src/ui/projectsettingseditor.cpp
@@ -389,13 +389,15 @@ void ProjectSettingsEditor::closeEvent(QCloseEvent* event) {
return;
}
- if (this->projectNeedsReload) {
- if (this->prompt("Settings changed, reload project to apply changes?") == QMessageBox::Yes)
- emit this->reloadProject();
- }
-
porymapConfig.setProjectSettingsEditorGeometry(
this->saveGeometry(),
this->saveState()
);
+
+ if (this->projectNeedsReload) {
+ if (this->prompt("Settings changed, reload project to apply changes?") == QMessageBox::Yes){
+ // Reloading the project will destroy this window, no other work should happen after this signal is emitted
+ emit this->reloadProject();
+ }
+ }
}