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>
This commit is contained in:
Tomaz Canabrava 2016-11-01 15:18:12 +01:00 committed by Dirk Hohndel
parent f33f2812cf
commit 27d1385c65

View file

@ -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