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

@@ -101,7 +101,7 @@ public:
QUndoStack editHistory;
void modify();
void clean();
bool hasUnsavedChanges();
bool hasUnsavedChanges() const;
void pruneEditHistory();
private:

View File

@@ -104,7 +104,7 @@ public:
void clearBorderCache();
void cacheBorder();
bool hasUnsavedChanges();
bool hasUnsavedChanges() const;
bool layoutBlockChanged(int i, const Blockdata &cache);

View File

@@ -144,6 +144,9 @@ public:
int appendMapsec(QString name);
bool hasUnsavedChanges();
bool hasUnsavedDataChanges = false;
QSet<QString> getTopLevelMapFields();
bool loadMapData(Map*);
bool readMapLayouts();