diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-02-05 20:45:18 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-05 20:45:18 -0800 |
commit | 130f4cd7ac5b27f5d8243b5c238a66c86f2604ba (patch) | |
tree | e77bc243dc0d80da8b5fabc7482212a4ada305a7 /profile-widget/diveprofileitem.cpp | |
parent | 7f70802b9025421d25ba63a9fe9932474ac1748c (diff) | |
download | subsurface-130f4cd7ac5b27f5d8243b5c238a66c86f2604ba.tar.gz |
Do not run the deco calculations in the mobile app
We don't show the calculated ceilings and calculating them is compute
intensive.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/diveprofileitem.cpp')
-rw-r--r-- | profile-widget/diveprofileitem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp index b090d2173..4262326d7 100644 --- a/profile-widget/diveprofileitem.cpp +++ b/profile-widget/diveprofileitem.cpp @@ -879,7 +879,9 @@ void DiveReportedCeiling::modelDataChanged(const QModelIndex &topLeft, const QMo void DiveCalculatedCeiling::recalc() { +#ifndef SUBSURFACE_MOBILE dataModel->calculateDecompression(); +#endif } void DiveCalculatedCeiling::settingsChanged() |