mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
fdc2427c43
commit
c1173e9d2e
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue