summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-01-30 22:13:24 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commitde579c1a1ad823fbc42d7e3122b77b03626283c3 (patch)
treeafcb74e7c30f5235ba899fa02ca5e2b5e4ce581a /desktop-widgets/command.cpp
parenta12adf8e2a5a9fc2471874e69d31ce50bbaf4cb8 (diff)
downloadsubsurface-de579c1a1ad823fbc42d7e3122b77b03626283c3.tar.gz
Undo: implement undo of air and water temperature editing
Mostly trivial. Since now on editing the field is re-set, the validation function becomes unnecessary. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/command.cpp')
-rw-r--r--desktop-widgets/command.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop-widgets/command.cpp b/desktop-widgets/command.cpp
index 37c53235d..c178c408a 100644
--- a/desktop-widgets/command.cpp
+++ b/desktop-widgets/command.cpp
@@ -155,4 +155,14 @@ void editVisibility(const QVector<dive *> dives, int newValue, int oldValue)
execute(new EditVisibility(dives, newValue, oldValue));
}
+void editAirTemp(const QVector<dive *> dives, int newValue, int oldValue)
+{
+ execute(new EditAirTemp(dives, newValue, oldValue));
+}
+
+void editWaterTemp(const QVector<dive *> dives, int newValue, int oldValue)
+{
+ execute(new EditWaterTemp(dives, newValue, oldValue));
+}
+
} // namespace Command