aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qmlmanager.cpp5
-rw-r--r--qt-mobile/qmlmanager.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index ab06cd941..f71e15100 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -556,6 +556,11 @@ QString QMLManager::addDive()
return DiveListModel::instance()->startAddDive();
}
+void QMLManager::addDiveAborted(int id)
+{
+ DiveListModel::instance()->removeDiveById(id);
+}
+
QString QMLManager::getCurrentPosition()
{
return locationProvider->currentPosition();
diff --git a/qt-mobile/qmlmanager.h b/qt-mobile/qmlmanager.h
index eb225a6cf..bb8bb693d 100644
--- a/qt-mobile/qmlmanager.h
+++ b/qt-mobile/qmlmanager.h
@@ -77,6 +77,7 @@ public slots:
void saveChanges();
QString addDive();
+ void addDiveAborted(int id);
void applyGpsData();
void sendGpsData();
void downloadGpsData();