mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile/dive-list: correctly update view when changing dive date
If the dive timestamp changes, the dive could move in the dive list. But the current dive actually doesn't change (it's still the same dive, right?). Yet we need to update the dive list as well as the shown dive (especially if this is after adding a dive, which is first inserted with the current time and then updated with whatever the user enters). Fixes: #2971 Suggested-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
927b008781
commit
a469dfa348
3 changed files with 5 additions and 6 deletions
|
@ -1414,7 +1414,7 @@ void QMLManager::selectDive(int id)
|
|||
amount_selected++;
|
||||
}
|
||||
if (amount_selected == 0)
|
||||
qWarning("QManager::selectDive() called with unknown id");
|
||||
qWarning("QManager::selectDive() called with unknown id %d",id);
|
||||
}
|
||||
|
||||
void QMLManager::deleteDive(int id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue