Enable Edition by clicking anywhere on the Cylinders and Weigths.
This patch enables edition on the selected dives as soon the user press delete or any other column on the Cylinder / weigthsystem. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
26cec576ee
commit
c805e2c941
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user