diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-09-23 10:38:35 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-27 14:16:18 -0700 |
commit | a469dfa3489673ecb19f88348ffa6c0c23608243 (patch) | |
tree | 4275cc930af698cfec69ecec9fbe1ab1e93b24c7 /mobile-widgets | |
parent | 927b0087810ee54e1141ae3cb48bfd2fe397dec6 (diff) | |
download | subsurface-a469dfa3489673ecb19f88348ffa6c0c23608243.tar.gz |
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>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 140a64777..648532d7d 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -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) |