From 59042b2ed0d260345fd48a940fd0bd5b043a1445 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Tue, 1 Dec 2015 20:46:59 +0100 Subject: Fix disabling of facebook integration Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- desktop-widgets/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 11d5fb153..67666a68f 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -56,9 +56,9 @@ #include "subsurface-core/isocialnetworkintegration.h" #include "subsurface-core/pluginmanager.h" +#if defined(FBSUPPORT) #include "plugins/facebook/facebook_integration.h" -#if defined(FBSUPPORT) #include "socialnetworks.h" #endif @@ -262,6 +262,7 @@ MainWindow::~MainWindow() void MainWindow::setupSocialNetworkMenu() { +#ifdef FBSUPPORT QMenu *connections = new QMenu(tr("Connect to")); FacebookPlugin *facebookPlugin = new FacebookPlugin(); QAction *toggle_connection = new QAction(this); @@ -281,6 +282,7 @@ void MainWindow::setupSocialNetworkMenu() ui.menuShare_on->addSeparator(); ui.menuShare_on->addMenu(connections); ui.menubar->show(); +#endif } void MainWindow::socialNetworkRequestConnect() -- cgit v1.2.3-70-g09d2