Show unsaved changes warning for map list and layout-only edits

This commit is contained in:
GriffinR
2024-10-29 21:51:05 -04:00
parent 785ac958a5
commit b89c1ddc80
8 changed files with 35 additions and 18 deletions

View File

@@ -256,7 +256,7 @@ void Map::clean() {
this->hasUnsavedDataChanges = false;
}
bool Map::hasUnsavedChanges() {
bool Map::hasUnsavedChanges() const {
return !editHistory.isClean() || this->layout->hasUnsavedChanges() || hasUnsavedDataChanges || !isPersistedToFile;
}