indicate map edited when event data is modified

This commit is contained in:
garak
2022-09-28 00:21:01 -04:00
parent 8ac556c0de
commit cb6d1a4220
6 changed files with 53 additions and 2 deletions

View File

@@ -515,6 +515,14 @@ void Map::addEvent(Event *event) {
if (!ownedEvents.contains(event)) ownedEvents.append(event);
}
void Map::modify() {
emit modified();
}
void Map::clean() {
this->hasUnsavedDataChanges = false;
}
bool Map::hasUnsavedChanges() {
return !editHistory.isClean() || hasUnsavedDataChanges || !isPersistedToFile;
}