summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/maintab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index 83fec7d92..605a9e5cb 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -735,8 +735,7 @@ static QVector<dive *> getSelectedDivesCurrentLast()
void MainTab::acceptChanges()
{
- int i, addedId = -1;
- struct dive *d;
+ int addedId = -1;
bool do_replot = false;
if (ui.location->hasFocus())
@@ -849,15 +848,6 @@ void MainTab::acceptChanges()
cd->weightsystem[i].description = copy_string(displayed_dive.weightsystem[i].description);
}
}
-
- // each dive that was selected might have had the temperatures in its active divecomputer changed
- // so re-populate the temperatures - easiest way to do this is by calling fixup_dive
- for_each_dive (i, d) {
- if (d->selected) {
- fixup_dive(d);
- invalidate_dive_cache(d);
- }
- }
}
if (lastMode == MANUALLY_ADDED_DIVE) {
// we just added or edited the dive, let fixup_dive() make