Move the Facebook send profile button

Move from the Dive List context menu to the Dive Info tab, it will only
appear when connected to Facebook.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-12-28 20:24:02 -02:00 committed by Dirk Hohndel
parent db0c1b834a
commit 571f86485d
6 changed files with 186 additions and 185 deletions

View file

@ -826,9 +826,6 @@ 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
@ -842,11 +839,6 @@ void DiveListView::contextMenuEvent(QContextMenuEvent *event)
event->accept();
}
void DiveListView::publishFacebook()
{
FacebookManager *fb = FacebookManager::instance();
fb->sendDive(1);
}
void DiveListView::shiftTimes()
{