From bb566f7798f1bc7fe8e4d40813823dca0f6ea9a3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 6 Nov 2015 10:20:18 -0800 Subject: Don't connect to the PreferencesDialog in Subsurface-mobile Just more untangling from the desktop UI. Signed-off-by: Dirk Hohndel --- profile-widget/diveprofileitem.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'profile-widget/diveprofileitem.cpp') diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp index b4e33fe1b..ca87f4ed0 100644 --- a/profile-widget/diveprofileitem.cpp +++ b/profile-widget/diveprofileitem.cpp @@ -5,7 +5,9 @@ #include "animationfunctions.h" #include "dive.h" #include "profile.h" +#ifndef SUBSURFACE_MOBILE #include "preferences/preferencesdialog.h" +#endif #include "diveplannermodel.h" #include "helpers.h" #include "libdivecomputer/parser.h" @@ -16,7 +18,9 @@ AbstractProfilePolygonItem::AbstractProfilePolygonItem() : QObject(), QGraphicsPolygonItem(), hAxis(NULL), vAxis(NULL), dataModel(NULL), hDataColumn(-1), vDataColumn(-1) { setCacheMode(DeviceCoordinateCache); +#ifndef SUBSURFACE_MOBILE connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged())); +#endif } void AbstractProfilePolygonItem::settingsChanged() -- cgit v1.2.3-70-g09d2