diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2016-11-01 15:18:12 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-11-01 09:40:06 -0700 |
commit | 27d1385c65792076d6541df3d19d50822c3c9e78 (patch) | |
tree | 2d5de974935b244ac598841cb1a59152cc36b748 /profile-widget | |
parent | f33f2812cf062db63d8c3e85c231ec637debb6f6 (diff) | |
download | subsurface-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.cpp | 5 |
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 |