summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-06 12:11:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-06 12:11:07 -0700
commitcf047466b5d297d80644194cc76f0a30ad2bac91 (patch)
tree98e8ceebee3ac6f0a6e36935dad054453fcd4b11 /qt-ui
parent6ebeba3c7c142994051061c495850827e51b552f (diff)
downloadsubsurface-cf047466b5d297d80644194cc76f0a30ad2bac91.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/preferences.cpp7
1 files changed, 2 insertions, 5 deletions
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 <QWebView>
#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);