summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
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()