From 1de56d468fda51b03c0bc3361822a7ae3b42dbb5 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 4 Apr 2020 23:51:28 +0200 Subject: [PATCH] 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 --- mobile-widgets/qmlmanager.cpp | 1 + 1 file changed, 1 insertion(+) 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"); }