aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp
index cac4c51..12c5632 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -18,6 +18,8 @@
#include "config.h"
+#include "mailsync.h"
+
#include <QFileInfo>
#include <QSettings>
#include <QStandardPaths>
@@ -171,6 +173,14 @@ void Config::load(const QString &path)
m_syncCommand.clear();
}
+ // Not validated for existence, unlike the command above. The log is written
+ // by the script when it runs, so a fresh install has no file yet, and a
+ // startup problem reported for that would be noise. A missing file simply
+ // reads as SyncOutcome::Unknown when the time comes.
+ m_syncLog = settings.value(QStringLiteral("sync/log")).toString().trimmed();
+ if (m_syncLog.isEmpty())
+ m_syncLog = MailSync::defaultLogPath();
+
// Account groups are written as [account.work], [account.personal], etc.
// A dot, not a slash, separates the "account" namespace from the key:
// QSettings' INI backend treats "/" as its own hierarchical group