summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-25 14:10:15 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-25 14:10:15 -0300
commit26cec576ee7f8a4833c9727bff95178acb6f883c (patch)
tree65c4f86928a9db59e52b12f7ed3401973adbc891 /qt-ui/maintab.h
parent4f0112c4206d98c4810715d8bbee5589cdb4940f (diff)
downloadsubsurface-26cec576ee7f8a4833c9727bff95178acb6f883c.tar.gz
Revert to the old values of Cylinders and Weigthsystems on cancel
This patch enables canceling the edition of cylinders and weigth systems, as soon as the user press cancel, the old values are re-populated on all selected entries. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r--qt-ui/maintab.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h
index 023a4de0c..af2ecc07c 100644
--- a/qt-ui/maintab.h
+++ b/qt-ui/maintab.h
@@ -34,6 +34,8 @@ struct NotesBackup{
int rating;
int visibility;
QString divemaster;
+ cylinder_t cylinders[MAX_CYLINDERS];
+ weightsystem_t weigthsystem[MAX_WEIGHTSYSTEMS ];
};
struct Completers{