diff options
-rw-r--r-- | qt-ui/maintab.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 6688977be..70657039c 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -688,12 +688,18 @@ void MainTab::on_visibility_valueChanged(int value) void MainTab::editCylinderWidget(const QModelIndex& index) { + if (editMode == NONE) + enableEdition(); + if (index.isValid() && index.column() != CylindersModel::REMOVE) ui->cylinders->edit(index); } void MainTab::editWeigthWidget(const QModelIndex& index) { + if (editMode == NONE) + enableEdition(); + if (index.isValid() && index.column() != WeightModel::REMOVE) ui->weights->edit(index); } |