diff options
Diffstat (limited to 'qt-ui/divecomputermanagementdialog.cpp')
-rw-r--r-- | qt-ui/divecomputermanagementdialog.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qt-ui/divecomputermanagementdialog.cpp b/qt-ui/divecomputermanagementdialog.cpp index 77a046d1a..510756e42 100644 --- a/qt-ui/divecomputermanagementdialog.cpp +++ b/qt-ui/divecomputermanagementdialog.cpp @@ -38,9 +38,8 @@ void DiveComputerManagementDialog::update() void DiveComputerManagementDialog::tryRemove(const QModelIndex& index) { - if (index.column() != DiveComputerModel::REMOVE){ + if (index.column() != DiveComputerModel::REMOVE) return; - } QMessageBox::StandardButton response = QMessageBox::question( this, @@ -49,9 +48,8 @@ void DiveComputerManagementDialog::tryRemove(const QModelIndex& index) QMessageBox::Ok | QMessageBox::Cancel ); - if (response == QMessageBox::Ok){ + if (response == QMessageBox::Ok) model->remove(index); - } } void DiveComputerManagementDialog::accept() |