From 26cec576ee7f8a4833c9727bff95178acb6f883c Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 25 Sep 2013 14:10:15 -0300 Subject: 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 --- 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 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{ -- cgit v1.2.3-70-g09d2