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:
Dirk Hohndel 2014-07-02 21:33:03 -07:00
parent 20d9fafd7c
commit 66870add77
2 changed files with 19 additions and 5 deletions

View file

@ -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