diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-12-05 18:28:28 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-12-09 15:51:17 +0200 |
commit | 586971256972337f68ce1c9e07083343b585fac6 (patch) | |
tree | f7c40d38d0a0ac7ca746181443e63d7964453201 /qt-ui/divelistview.cpp | |
parent | be16ade0383813949e82491de5a26f42752c3e0f (diff) | |
download | subsurface-586971256972337f68ce1c9e07083343b585fac6.tar.gz |
Divelogs.de: add a divelist context menu item for upload
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
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(); +} |