mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6ebeba3c7c
commit
cf047466b5
2 changed files with 4 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue