From cf047466b5d297d80644194cc76f0a30ad2bac91 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 6 Jul 2015 12:11:07 -0700 Subject: Cmake: make Facebook support an actual option This way we can selectively turn off Facebook support. And turning off both Facebook support and support for the user manual allows us to not rely on QWebKit which once again allows debugging Subsurface with valgrind on Arch Linux. Signed-off-by: Dirk Hohndel --- qt-ui/preferences.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'qt-ui/preferences.cpp') diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index 25638c991..c9c44adc7 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -12,11 +12,8 @@ #include "subsurfacewebservices.h" -#if defined(FBSUPPORT) +#if !defined(Q_OS_ANDROID) && defined(FBSUPPORT) #include "socialnetworks.h" -#endif - -#ifndef Q_OS_ANDROID #include #endif @@ -79,7 +76,7 @@ PreferencesDialog::PreferencesDialog(QWidget *parent, Qt::WindowFlags f) : QDial void PreferencesDialog::facebookLoggedIn() { -#ifndef Q_OS_ANDROID +#if !defined(Q_OS_ANDROID) && defined(FBSUPPORT) // remove the login view and add the disconnect button ui.fbLayout->removeItem(ui.fbLayout->itemAt(1)); ui.fbLayout->insertWidget(1, ui.fbConnected, 0); -- cgit v1.2.3-70-g09d2