summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index e441428b9..8db7df7df 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -927,6 +927,7 @@ bool QMLManager::checkDuration(DiveObjectHelper *myDive, struct dive *d, QString
free(d->dc.sample);
d->dc.sample = 0;
d->dc.samples = 0;
+ d->dc.alloc_samples = 0;
} else {
appendTextToLog("Cannot change the duration on a dive that wasn't manually added");
}
@@ -949,6 +950,7 @@ bool QMLManager::checkDepth(DiveObjectHelper *myDive, dive *d, QString depth)
free(d->dc.sample);
d->dc.sample = 0;
d->dc.samples = 0;
+ d->dc.alloc_samples = 0;
}
return true;
}