From e1affe17d05f78bc780c68b9c032b1a7252d6e04 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Wed, 28 Nov 2018 21:32:44 +0100 Subject: [PATCH] fix init order --- libnymea-core/nymeacore.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libnymea-core/nymeacore.cpp b/libnymea-core/nymeacore.cpp index 8f3c8107..df7fe8ee 100644 --- a/libnymea-core/nymeacore.cpp +++ b/libnymea-core/nymeacore.cpp @@ -524,6 +524,9 @@ void NymeaCore::init() { qCDebug(dcApplication) << "Creating Log Engine"; m_logger = new LogEngine(m_configuration->logDBDriver(), m_configuration->logDBName(), m_configuration->logDBHost(), m_configuration->logDBUser(), m_configuration->logDBPassword(), m_configuration->logDBMaxEntries(), this); + qCDebug(dcApplication()) << "Creating User Manager"; + m_userManager = new UserManager(NymeaSettings::settingsPath() + "/user-db.sqlite", this); + qCDebug(dcApplication) << "Creating Server Manager"; m_serverManager = new ServerManager(m_configuration, this); @@ -536,9 +539,6 @@ void NymeaCore::init() { qCDebug(dcApplication) << "Creating Rule Engine"; m_ruleEngine = new RuleEngine(this); - qCDebug(dcApplication()) << "Creating User Manager"; - m_userManager = new UserManager(NymeaSettings::settingsPath() + "/user-db.sqlite", this); - qCDebug(dcApplication()) << "Creating Tags Storage"; m_tagsStorage = new TagsStorage(m_deviceManager, m_ruleEngine, this);