mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue