summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-04 23:51:28 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-04 16:09:57 -0700
commit1de56d468fda51b03c0bc3361822a7ae3b42dbb5 (patch)
tree742226a180b540391fa57bcd254b733ac6c4ec40 /mobile-widgets/qmlmanager.cpp
parenta6567a0070873cd41a77d8a7d1e26558b9933a36 (diff)
downloadsubsurface-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>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp1
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");
}