diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2018-11-18 08:12:09 +0200 |
---|---|---|
committer | mturkia <miika.turkia@gmail.com> | 2018-12-21 09:13:37 +0200 |
commit | 3f8583de36ddf6081d7230d7a24aa7a11594b215 (patch) | |
tree | fa869a2353a8ab898dc5e29478b4220acb9baa64 /mobile-widgets | |
parent | 8203fa884e5d19f3e57bde555da53311ba3f1a0d (diff) | |
download | subsurface-3f8583de36ddf6081d7230d7a24aa7a11594b215.tar.gz |
Mobile: initialize copy variables
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index a133a5479..05bea0a0e 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -224,6 +224,18 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false), // make sure we know if the current cloud repo has been successfully synced syncLoadFromCloud(); LOG_STP("qmlmgr sync load cloud"); + + memset(&m_copyPasteDive, 0, sizeof(m_copyPasteDive)); + memset(&what, 0, sizeof(what)); + + // Let's set some defaults to be copied so users don't necessarily need + // to know how to configure this + what.divemaster = true; + what.buddy = true; + what.suit = true; + what.tags = true; + what.cylinders = true; + what.weights = true; } void QMLManager::applicationStateChanged(Qt::ApplicationState state) |