summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-12-21 20:21:56 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-10 09:25:57 -0700
commitdd8d8edc45dad1316aa5b5470247e14fb75d67e1 (patch)
tree2d0080fc49633750b46fbf65b145c44afa40f92f /mobile-widgets/qmlmanager.cpp
parentd55ea8f8750a7952d4e9e003bef57decc513d2d4 (diff)
downloadsubsurface-dd8d8edc45dad1316aa5b5470247e14fb75d67e1.tar.gz
mobile/divelist: don't set currentIndex on undo of dive deletion
The core sets the current dive when undoing something. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index d064c1807..0c434a4a9 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1398,11 +1398,10 @@ void QMLManager::saveChangesCloud(bool forceRemoteSync)
git_local_only = glo;
}
-bool QMLManager::undoDelete(int)
+void QMLManager::undoDelete(int)
{
undoAction->activate(QAction::Trigger);
changesNeedSaving();
- return true;
}
void QMLManager::selectDive(int id)