diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-01-27 23:40:19 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-01-27 16:37:27 -0800 |
commit | c1173e9d2eba06542611e2c400a6df7a4d88ee2e (patch) | |
tree | 5637032166dbaa3c823f7e2793878dfbc4262041 /desktop-widgets | |
parent | fdc2427c43df0172bed895d7061ac7dc2278e459 (diff) | |
download | subsurface-c1173e9d2eba06542611e2c400a6df7a4d88ee2e.tar.gz |
Cleanup: remove redundant conditional
In MainTab::acceptChanges there was a "editMode != ADD" condition
inside a else block to "editMode == ADD", which is therefore
redundant. Remove.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index f22b7cf1e..4bc7006bf 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -815,7 +815,7 @@ void MainTab::acceptChanges() saveTaggedStrings(selectedDives); saveTags(selectedDives); - if (editMode != ADD && cylindersModel->changed) { + if (cylindersModel->changed) { mark_divelist_changed(true); MODIFY_DIVES(selectedDives, for (int i = 0; i < MAX_CYLINDERS; i++) { |