diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-10-11 10:21:04 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-10-11 10:21:04 -0300 |
commit | 1b9a4f2bf8e9de9144133a435f3470fd77975945 (patch) | |
tree | 74aa1d0972296d3d7f7b327fbabd523d91cb8aeb /qt-ui/divecomputermanagementdialog.cpp | |
parent | 9ed933d033889ac841c5f38afcdd40fa588a8cb9 (diff) | |
download | subsurface-1b9a4f2bf8e9de9144133a435f3470fd77975945.tar.gz |
Good deal of whitespace fixes and code cleanup.
I just went thru all of subsurface code removing
some whitespaces issues and trying to make the
code prettyer, I also removed a few QString issues.d
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
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() |