Set unsaved changes when pasting metatiles

This commit is contained in:
GriffinR 2023-01-16 21:47:36 -05:00
parent c233e3cd59
commit 6101899b6d
2 changed files with 2 additions and 0 deletions

View file

@ -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 `File -> Open Project` not resolving folder shortcuts.
- Fix bug where "Requires Itemfinder" checkbox is being checked by wrong data. - Fix bug where "Requires Itemfinder" checkbox is being checked by wrong data.
- Fix the map border not immediately reflecting Tileset Editor changes. - 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 ## [5.0.0] - 2022-10-30
### Breaking Changes ### Breaking Changes

View file

@ -917,6 +917,7 @@ void TilesetEditor::pasteMetatile(const Metatile * toPaste)
MetatileHistoryItem *commit = new MetatileHistoryItem(metatileId, prevMetatile, new Metatile(*this->metatile)); MetatileHistoryItem *commit = new MetatileHistoryItem(metatileId, prevMetatile, new Metatile(*this->metatile));
metatileHistory.push(commit); metatileHistory.push(commit);
this->hasUnsavedChanges = true;
} }
void TilesetEditor::on_actionExport_Primary_Tiles_Image_triggered() void TilesetEditor::on_actionExport_Primary_Tiles_Image_triggered()