mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
f33f2812cf
commit
27d1385c65
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue