mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
db0c1b834a
commit
571f86485d
6 changed files with 186 additions and 185 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue