From 66870add77e62b95d15cc6a8e76838cc0462a77f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 2 Jul 2014 21:33:03 -0700 Subject: 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 --- qt-ui/maintab.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/maintab.h') diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index e2b9e0e27..9ecd3fd10 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -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 -- cgit v1.2.3-70-g09d2