summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 9b774859e..c10d8737d 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -374,14 +374,16 @@ void MainTab::updateDiveInfo(int dive)
void MainTab::addCylinder_clicked()
{
+ if(editMode == NONE)
+ enableEdition();
cylindersModel->add();
- mark_divelist_changed(TRUE);
}
void MainTab::addWeight_clicked()
{
+ if(editMode == NONE)
+ enableEdition();
weightModel->add();
- mark_divelist_changed(TRUE);
}
void MainTab::reload()