diff options
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 4b3286911..06bc5d8ef 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1404,6 +1404,16 @@ void QMLManager::deleteDive(int id) changesNeedSaving(); } +void QMLManager::toggleDiveInvalid(int id) +{ + struct dive *d = get_dive_by_uniq_id(id); + if (!d) { + appendTextToLog("trying to toggle invalid flag of non-existing dive"); + return; + } + Command::editInvalid(!d->invalid, true); +} + bool QMLManager::toggleDiveSite(bool toggle) { if (toggle) |