diff options
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r-- | qt-ui/divelistview.cpp | 8 |
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(); +} |