mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add helper to remove dive from model
I tried various things to do this from QML but it just doesn't seem to work at all. So I gave up and instead added a trivial helper function. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
957f03f2a4
commit
9f7ecbb53e
4 changed files with 19 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue