mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
e49b4b72b7
commit
a76fdd8d54
5 changed files with 77 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue