diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-04 23:51:28 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-04 16:09:57 -0700 |
commit | 1de56d468fda51b03c0bc3361822a7ae3b42dbb5 (patch) | |
tree | 742226a180b540391fa57bcd254b733ac6c4ec40 | |
parent | a6567a0070873cd41a77d8a7d1e26558b9933a36 (diff) | |
download | subsurface-1de56d468fda51b03c0bc3361822a7ae3b42dbb5.tar.gz |
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>
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index ea2e3321b..d19aeb28b 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1341,6 +1341,7 @@ void QMLManager::saveChangesLocal() return; } mark_divelist_changed(false); + Command::setClean(); } else { appendTextToLog("local save requested with no unsaved changes"); } |