mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-12 03:45:51 -05:00
indicate map edited when event data is modified
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user