From 6101899b6d38798012968c9f7f00092a25ec46aa Mon Sep 17 00:00:00 2001 From: GriffinR Date: Mon, 16 Jan 2023 21:47:36 -0500 Subject: [PATCH] Set unsaved changes when pasting metatiles --- CHANGELOG.md | 1 + src/ui/tileseteditor.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7a72b0a..ca149b58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d - Fix `File -> Open Project` not resolving folder shortcuts. - Fix bug where "Requires Itemfinder" checkbox is being checked by wrong data. - Fix the map border not immediately reflecting Tileset Editor changes. +- Fix pasting metatiles in the Tileset Editor not triggering the unsaved changes warning. ## [5.0.0] - 2022-10-30 ### Breaking Changes diff --git a/src/ui/tileseteditor.cpp b/src/ui/tileseteditor.cpp index 23e0aad5..edbfd55b 100644 --- a/src/ui/tileseteditor.cpp +++ b/src/ui/tileseteditor.cpp @@ -917,6 +917,7 @@ void TilesetEditor::pasteMetatile(const Metatile * toPaste) MetatileHistoryItem *commit = new MetatileHistoryItem(metatileId, prevMetatile, new Metatile(*this->metatile)); metatileHistory.push(commit); + this->hasUnsavedChanges = true; } void TilesetEditor::on_actionExport_Primary_Tiles_Image_triggered()