diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index cd85418a8..6edc5fa8e 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -16,6 +16,7 @@ #include "qthelper.h" #include "display.h" #include "divepicturewidget.h" +#include "socialnetworks.h" #include <QLabel> #include <QCompleter> @@ -185,6 +186,11 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), ui.photosView->addAction(deletePhoto); ui.photosView->setSelectionMode(QAbstractItemView::SingleSelection); connect(deletePhoto, SIGNAL(triggered(bool)), this, SLOT(removeSelectedPhotos())); + + FacebookManager *fb = FacebookManager::instance(); + connect(fb, &FacebookManager::justLoggedIn, ui.facebookPublish, &QPushButton::show); + connect(fb, &FacebookManager::justLoggedOut, ui.facebookPublish, &QPushButton::hide); + ui.facebookPublish->setVisible(fb->loggedIn()); } MainTab::~MainTab() |