undo: add cylinders via undo

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-02-27 20:42:13 +01:00
parent 66fc9fcfec
commit ff38c03e00

View file

@ -152,8 +152,7 @@ void TabDiveEquipment::clear()
void TabDiveEquipment::addCylinder_clicked()
{
MainWindow::instance()->mainTab->enableEdition();
cylindersModel->add();
divesEdited(Command::addCylinder(false));
}
void TabDiveEquipment::addWeight_clicked()