Facebook integration: keep the connections QMenu around

This way we can change the text, later.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-01-01 22:19:08 -08:00
parent 7312cfc2d0
commit c39fbea0ee
2 changed files with 2 additions and 1 deletions

View file

@ -328,7 +328,7 @@ MainWindow::~MainWindow()
void MainWindow::setupSocialNetworkMenu() void MainWindow::setupSocialNetworkMenu()
{ {
#ifdef FBSUPPORT #ifdef FBSUPPORT
QMenu *connections = new QMenu(tr("Connect to")); connections = new QMenu(tr("Connect to"));
FacebookPlugin *facebookPlugin = new FacebookPlugin(); FacebookPlugin *facebookPlugin = new FacebookPlugin();
QAction *toggle_connection = new QAction(this); QAction *toggle_connection = new QAction(this);
QObject *obj = qobject_cast<QObject*>(facebookPlugin); QObject *obj = qobject_cast<QObject*>(facebookPlugin);

View file

@ -241,6 +241,7 @@ private:
WindowTitleUpdate *wtu; WindowTitleUpdate *wtu;
GpsLocation *locationProvider; GpsLocation *locationProvider;
QMenu *connections;
}; };
#endif // MAINWINDOW_H #endif // MAINWINDOW_H