From c1b6c9f6214fc858c3d10354cc277afa146109c6 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 6 May 2026 03:26:01 -0700 Subject: [PATCH] fix(editor): exportZone clears autoSavePendingChanges_ flag quickSave was the only path that cleared the flag, but exportZone is also reachable through 'Export Open Format' and exportContentPack without going through quickSave. Now any successful zone export clears the dirty state so the asterisk and quit-confirm dialog reset properly. --- tools/editor/editor_app.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/editor/editor_app.cpp b/tools/editor/editor_app.cpp index 5fa4a7fb..682ae4f0 100644 --- a/tools/editor/editor_app.cpp +++ b/tools/editor/editor_app.cpp @@ -1356,6 +1356,10 @@ void EditorApp::exportZone(const std::string& outputDir) { LOG_INFO(" NPCs: ", npcSpawner_.spawnCount(), " creatures"); LOG_INFO(" Quests: ", questEditor_.questCount()); LOG_INFO("========================"); + + // Any path through exportZone counts as a save — clear the pending flag + // so the dirty asterisk and quit-confirm dialog go away. + autoSavePendingChanges_ = false; } void EditorApp::exportContentPack(const std::string& destPath) {