mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
UI restructure: track if any data was modified
Instead of comparing the dive structures (which doesn't work since the strings are actually copies), track if the user made changes. Cylinders and weights still need to be compared as they are handled in different widgets. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
20d9fafd7c
commit
66870add77
2 changed files with 19 additions and 5 deletions
|
@ -99,10 +99,12 @@ private:
|
|||
TagCompletionModel tagModel;
|
||||
DivePictureModel *divePictureModel;
|
||||
Completers completers;
|
||||
bool modified;
|
||||
void resetPallete();
|
||||
void saveTags();
|
||||
bool tagsChanged(struct dive *a, struct dive *b);
|
||||
void updateGpsCoordinates(const struct dive *dive);
|
||||
void markChangedWidget(QWidget *w);
|
||||
};
|
||||
|
||||
#endif // MAINTAB_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue