summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-12-28 20:24:02 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-29 09:05:08 -0800
commit571f86485d6063f86901487bca62e79b6383db45 (patch)
tree52ec03557d1c901f9e11dd0b4ca46a238f142a38 /qt-ui/divelistview.cpp
parentdb0c1b834a9e3d516484a6e42f1fddc538477071 (diff)
downloadsubsurface-571f86485d6063f86901487bca62e79b6383db45.tar.gz
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>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index cbbf35152..d6f52c646 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -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()
{