From c1173e9d2eba06542611e2c400a6df7a4d88ee2e Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 27 Jan 2019 23:40:19 +0100 Subject: 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 --- desktop-widgets/tab-widgets/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- cgit v1.2.3-70-g09d2