From 27d1385c65792076d6541df3d19d50822c3c9e78 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 1 Nov 2016 15:18:12 +0100 Subject: [PATCH] Use the new preferences object to set the preferences Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- profile-widget/profilewidget2.cpp | 5 +---- 1 file changed, 1 insertion(+), 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