More preference handling fixes

Remove a few uneeded lines and add more loading code for
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:44:30 +01:00 committed by Dirk Hohndel
parent 27d1385c65
commit c110b4a238
3 changed files with 2 additions and 4 deletions

View file

@ -2296,6 +2296,8 @@ void SettingsObjectWrapper::load()
GET_TXT("time_format", time_format);
GET_TXT("date_format", date_format);
GET_TXT("date_format_short", date_format_short);
GET_BOOL("time_format_override", time_format_override);
GET_BOOL("date_format_override", date_format_override);
s.endGroup();
}

View file

@ -380,8 +380,6 @@ void WebServices::resetState()
SubsurfaceWebServices::SubsurfaceWebServices(QWidget *parent, Qt::WindowFlags f) : WebServices(parent, f)
{
QSettings s;
// figure out if we know (or can determine) the user's web service userid
QString userid(prefs.userid);

View file

@ -14,8 +14,6 @@
#include "libdivecomputer/parser.h"
#include "profile-widget/profilewidget2.h"
#include <QSettings>
AbstractProfilePolygonItem::AbstractProfilePolygonItem() : QObject(), QGraphicsPolygonItem(), hAxis(NULL), vAxis(NULL), dataModel(NULL), hDataColumn(-1), vDataColumn(-1)
{
setCacheMode(DeviceCoordinateCache);