diff options
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 9 | ||||
-rw-r--r-- | mobile-widgets/qmlmanager.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index f6c182a55..08ce7fca7 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1375,6 +1375,15 @@ bool QMLManager::undoDelete(int id) return true; } +void QMLManager::selectDive(int id) +{ + int i; + struct dive *dive = NULL; + + for_each_dive (i, dive) + dive->selected = (dive->id == id); +} + void QMLManager::deleteDive(int id) { struct dive *d = get_dive_by_uniq_id(id); diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index e47119a71..b2c118848 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -164,6 +164,7 @@ public slots: void openNoCloudRepo(); void saveChangesLocal(); void saveChangesCloud(bool forceRemoteSync); + void selectDive(int id); void deleteDive(int id); void copyDiveData(int id); void pasteDiveData(int id); |