mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
7312cfc2d0
commit
c39fbea0ee
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
|
@ -241,6 +241,7 @@ private:
|
||||||
|
|
||||||
WindowTitleUpdate *wtu;
|
WindowTitleUpdate *wtu;
|
||||||
GpsLocation *locationProvider;
|
GpsLocation *locationProvider;
|
||||||
|
QMenu *connections;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MAINWINDOW_H
|
#endif // MAINWINDOW_H
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue