diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-02 21:33:03 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-03 09:37:55 -0700 |
commit | 66870add77e62b95d15cc6a8e76838cc0462a77f (patch) | |
tree | dbe66ced05037216c2e7e534f8fd9523b6946adc /qt-ui/maintab.h | |
parent | 20d9fafd7cc5d5b0fde5a4ace8c59d6bfed20c75 (diff) | |
download | subsurface-66870add77e62b95d15cc6a8e76838cc0462a77f.tar.gz |
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>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r-- | qt-ui/maintab.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |