diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-12-01 20:46:59 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-02 09:21:04 -0800 |
commit | 59042b2ed0d260345fd48a940fd0bd5b043a1445 (patch) | |
tree | 88ee9fc0e36ac3a2238811d80afa31ebf0e3fef9 /desktop-widgets/mainwindow.cpp | |
parent | 58901690dd1d6e8c7bbfc5099f43bfa8f9a955b8 (diff) | |
download | subsurface-59042b2ed0d260345fd48a940fd0bd5b043a1445.tar.gz |
Fix disabling of facebook integration
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 4 |
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() |