diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-12-24 13:23:31 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-24 07:32:36 -0800 |
commit | a76fdd8d54600fee1d82e40fddaf3cf563dbc582 (patch) | |
tree | 1c6b42f696a2dcf43fa135cfe6981df0757a3fec /qt-ui/divelistview.cpp | |
parent | e49b4b72b719579a2ff49f4add732fb52c40c953 (diff) | |
download | subsurface-a76fdd8d54600fee1d82e40fddaf3cf563dbc582.tar.gz |
Create a Facebook album for Subsurface
We still need to do a lot of stuff on that part.
Currently when asking for sending a profile, it will just
create a private album.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r-- | qt-ui/divelistview.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index c5ffaaafa..65090e1e8 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -824,6 +824,10 @@ void DiveListView::contextMenuEvent(QContextMenuEvent *event) popup.addAction(tr("Shift times"), this, SLOT(shiftTimes())); popup.addAction(tr("Load images"), this, SLOT(loadImages())); } + if (prefs.facebook.user_id) { + popup.addAction(tr("Publish on Facebook"), this, SLOT(publishFacebook())); + } + // "collapse all" really closes all trips, // "collapse" keeps the trip with the selected dive open QAction *actionTaken = popup.exec(event->globalPos()); @@ -836,6 +840,12 @@ void DiveListView::contextMenuEvent(QContextMenuEvent *event) event->accept(); } +void DiveListView::publishFacebook() +{ + FacebookManager manager; + manager.checkAlbumExists(); +} + void DiveListView::shiftTimes() { ShiftTimesDialog::instance()->show(); |