summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2016-11-01 15:18:12 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-11-01 09:40:06 -0700
commit27d1385c65792076d6541df3d19d50822c3c9e78 (patch)
tree2d5de974935b244ac598841cb1a59152cc36b748 /profile-widget
parentf33f2812cf062db63d8c3e85c231ec637debb6f6 (diff)
downloadsubsurface-27d1385c65792076d6541df3d19d50822c3c9e78.tar.gz
Use the new preferences object to set the preferences
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index e077bb727..65bdb0969 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -748,10 +748,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
// so if we are calculation TTS / NDL then let's force that off.
#ifndef SUBSURFACE_MOBILE
if (measureDuration.elapsed() > 1000 && prefs.calcndltts) {
- prefs.calcndltts = false;
- QSettings s;
- s.beginGroup("TecDetails");
- s.setValue("calcndltts", false);
+ SettingsObjectWrapper::instance()->techDetails->setCalcndltts(false);
report_error(qPrintable(tr("Show NDL / TTS was disabled because of excessive processing time")));
}
#endif