summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/tab-widgets')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index 7882573ba..11ad99d50 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -892,11 +892,9 @@ void MainTab::acceptChanges()
}
}
- if (displayed_dive.when != cd->when) {
- timestamp_t offset = cd->when - displayed_dive.when;
- if (offset)
- Command::shiftTime(selectedDives, (int)offset);
- }
+ timestamp_t offset = displayed_dive.when - cd->when;
+ if (offset)
+ Command::shiftTime(selectedDives, (int)offset);
}
if (editMode == MANUALLY_ADDED_DIVE) {
// we just added or edited the dive, let fixup_dive() make