summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-09 17:22:33 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-09 17:22:33 +0100
commit8ac58181f75e494a242126751646285d4db672bc (patch)
tree10ec814fc20f3ce53a46b1df767eff56422e64b7 /qt-ui/divelistview.cpp
parent4675ab0617ed4536ad0196c7a09035b9c586dff7 (diff)
parent04b62a46e9f28f0e3b4a4f2e3c3aa9c18445df2f (diff)
downloadsubsurface-8ac58181f75e494a242126751646285d4db672bc.tar.gz
Merge branch 'web' of github.com:neolit123/subsurface
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index a1c4cf7fc..06b691c17 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -8,6 +8,7 @@
#include "models.h"
#include "modeldelegates.h"
#include "mainwindow.h"
+#include "subsurfacewebservices.h"
#include "../display.h"
#include <QApplication>
#include <QHeaderView>
@@ -726,6 +727,8 @@ void DiveListView::contextMenuEvent(QContextMenuEvent *event)
popup.addAction(tr("export As UDDF"), this, SLOT(exportSelectedDivesAsUDDF()));
popup.addAction(tr("shift times"), this, SLOT(shiftTimes()));
}
+ if (d)
+ popup.addAction(tr("upload dive(s) to divelogs.de"), this, SLOT(uploadToDivelogsDE()));
// "collapse all" really closes all trips,
// "collapse" keeps the trip with the selected dive open
QAction * actionTaken = popup.exec(event->globalPos());
@@ -781,3 +784,8 @@ void DiveListView::shiftTimes()
{
ShiftTimesDialog::instance()->show();
}
+
+void DiveListView::uploadToDivelogsDE()
+{
+ DivelogsDeWebServices::instance()->prepareDivesForUpload();
+}