summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-27 20:42:13 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-07 00:13:35 +0200
commitff38c03e0069e57a5dae7907441c53eb776c65f0 (patch)
treee5ca14ae7e694c2c703b17c20d0da3b7a8429c8f /desktop-widgets
parent66fc9fcfecfd4d9a40a287b66c15d48691a24660 (diff)
downloadsubsurface-ff38c03e0069e57a5dae7907441c53eb776c65f0.tar.gz
undo: add cylinders via undo
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/tab-widgets/TabDiveEquipment.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveEquipment.cpp b/desktop-widgets/tab-widgets/TabDiveEquipment.cpp
index c5601f1ce..13cfe77c4 100644
--- a/desktop-widgets/tab-widgets/TabDiveEquipment.cpp
+++ b/desktop-widgets/tab-widgets/TabDiveEquipment.cpp
@@ -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()