summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-17 12:52:05 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-19 12:42:47 -0800
commit274b3c786bb0bf9b2f46b17112809838d8127c76 (patch)
tree328676f41ca5f7761b0efd8c8fcbb2fa6860757e /mobile-widgets/qmlmanager.cpp
parent0a632e12d29ca3c5a18bc22337fe44a637a1c10b (diff)
downloadsubsurface-274b3c786bb0bf9b2f46b17112809838d8127c76.tar.gz
mobile/git-storage: ensure correct commit messages get saved
In order to get the undo stack information into the commit message, we need to actually call Command::init() to set up the callback. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index a40eb7f6c..02c254257 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -328,6 +328,9 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
// we start out with clean data
updateHaveLocalChanges(false);
+
+ // setup Command infrastructure
+ Command::init();
}
void QMLManager::applicationStateChanged(Qt::ApplicationState state)