diff options
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDiveEquipment.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveEquipment.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveEquipment.cpp b/desktop-widgets/tab-widgets/TabDiveEquipment.cpp index 110472e56..1ea57e703 100644 --- a/desktop-widgets/tab-widgets/TabDiveEquipment.cpp +++ b/desktop-widgets/tab-widgets/TabDiveEquipment.cpp @@ -158,8 +158,7 @@ void TabDiveEquipment::addCylinder_clicked() void TabDiveEquipment::addWeight_clicked() { - MainWindow::instance()->mainTab->enableEdition(); - weightModel->add(); + divesEdited(Command::addWeight(false)); } void TabDiveEquipment::editCylinderWidget(const QModelIndex &index) |