mobile/undo: set undo stack as clean after save

If we're using the undo stack for determining the whether there are
unsaved changes, we have to mark the undo stack as clean after save.

This duplicates code from desktop. It is planned to unify this in
the near future.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-04-04 23:51:28 +02:00 committed by Dirk Hohndel
parent a6567a0070
commit 1de56d468f

View file

@ -1341,6 +1341,7 @@ void QMLManager::saveChangesLocal()
return; return;
} }
mark_divelist_changed(false); mark_divelist_changed(false);
Command::setClean();
} else { } else {
appendTextToLog("local save requested with no unsaved changes"); appendTextToLog("local save requested with no unsaved changes");
} }