mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix disabling of facebook integration
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
58901690dd
commit
59042b2ed0
2 changed files with 9 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue