summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-12-28 21:06:07 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-29 09:05:53 -0800
commited903c42b9aac5a87cdbef0c888782b4985724b0 (patch)
tree939c9bff15f65d34d387ac7fd3187454eba570bb /qt-ui/maintab.cpp
parent571f86485d6063f86901487bca62e79b6383db45 (diff)
downloadsubsurface-ed903c42b9aac5a87cdbef0c888782b4985724b0.tar.gz
Facebook integration: Always ask for a folder before sending the photo
This way we are sure that the upload was made in the correct folder. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 6edc5fa8e..302c0b210 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -190,6 +190,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
FacebookManager *fb = FacebookManager::instance();
connect(fb, &FacebookManager::justLoggedIn, ui.facebookPublish, &QPushButton::show);
connect(fb, &FacebookManager::justLoggedOut, ui.facebookPublish, &QPushButton::hide);
+ connect(ui.facebookPublish, &QPushButton::clicked, fb, &FacebookManager::sendDive);
ui.facebookPublish->setVisible(fb->loggedIn());
}