From c39fbea0eef85982f00cc0f0c3b77e6aaddd260b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 1 Jan 2017 22:19:08 -0800 Subject: Facebook integration: keep the connections QMenu around This way we can change the text, later. Signed-off-by: Dirk Hohndel --- desktop-widgets/mainwindow.cpp | 2 +- desktop-widgets/mainwindow.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'desktop-widgets') 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(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 -- cgit v1.2.3-70-g09d2