summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-06-13 17:06:46 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-04 05:32:30 +0800
commit889a0bb67a45f3e1637714331a5c620cc257df23 (patch)
treeec7f05249cb58664417e048764e80d9b94129a1b
parent36d7f6eafb1a5e9c7145bc61243674382ae00421 (diff)
downloadsubsurface-889a0bb67a45f3e1637714331a5c620cc257df23.tar.gz
core/profile: move PP_GRAPHS_ENABLED from pref.h
PP_GRAPHS_ENABLED is only used in profilewidget2.cpp make local to profilewidget.cpp Signed-off-by: Jan Iversen <jani@apache.org>core/profile: move PP_GRAPHS_ENABLED from pref.h
-rw-r--r--core/pref.h2
-rw-r--r--profile-widget/profilewidget2.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/pref.h b/core/pref.h
index ae56d3c25..060528939 100644
--- a/core/pref.h
+++ b/core/pref.h
@@ -223,8 +223,6 @@ enum cloud_status {
extern struct preferences prefs, default_prefs, git_prefs;
-#define PP_GRAPHS_ENABLED (prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.pp_graphs.phe)
-
extern const char *system_divelist_default_font;
extern double system_divelist_default_font_size;
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 40cb00162..bf8649834 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -44,6 +44,8 @@
#endif
#include <QtWidgets>
+#define PP_GRAPHS_ENABLED (prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.pp_graphs.phe)
+
// a couple of helpers we need
extern bool haveFilesOnCommandLine();