mobile: replace undoDelete() with generic undo()

Since we are using the existing command infrastructure, this isn't specific to
undoing a delete.

This commit renames the function and removes its use in the UI, the next commit
will then add the generic undo to the UI.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-01-11 15:29:45 -08:00
parent 8e6cc9b8d0
commit af4bd16f88
3 changed files with 3 additions and 10 deletions

View file

@ -1395,7 +1395,7 @@ void QMLManager::saveChangesCloud(bool forceRemoteSync)
git_local_only = glo;
}
void QMLManager::undoDelete(int)
void QMLManager::undo()
{
Command::getUndoStack()->undo();
changesNeedSaving();