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>
This commit is contained in:
Berthold Stoeger 2019-01-30 22:13:24 +01:00 committed by Dirk Hohndel
parent a12adf8e2a
commit de579c1a1a
6 changed files with 90 additions and 47 deletions

View file

@ -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