summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-01-01 22:19:08 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-01-01 22:19:08 -0800
commitc39fbea0eef85982f00cc0f0c3b77e6aaddd260b (patch)
tree773e99e949ccb8ecf6be5819f174c2e8ccd28576 /desktop-widgets
parent7312cfc2d0471b5ed8993cb7a94a8da86627a6a3 (diff)
downloadsubsurface-c39fbea0eef85982f00cc0f0c3b77e6aaddd260b.tar.gz
Facebook integration: keep the connections QMenu around
This way we can change the text, later. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/mainwindow.cpp2
-rw-r--r--desktop-widgets/mainwindow.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 5231961c7..526a71a17 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -328,7 +328,7 @@ MainWindow::~MainWindow()
void MainWindow::setupSocialNetworkMenu()
{
#ifdef FBSUPPORT
- QMenu *connections = new QMenu(tr("Connect to"));
+ connections = new QMenu(tr("Connect to"));
FacebookPlugin *facebookPlugin = new FacebookPlugin();
QAction *toggle_connection = new QAction(this);
QObject *obj = qobject_cast<QObject*>(facebookPlugin);
diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h
index e7f8f28c4..8e9358a4c 100644
--- a/desktop-widgets/mainwindow.h
+++ b/desktop-widgets/mainwindow.h
@@ -241,6 +241,7 @@ private:
WindowTitleUpdate *wtu;
GpsLocation *locationProvider;
+ QMenu *connections;
};
#endif // MAINWINDOW_H