diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-24 16:45:18 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-24 16:45:18 +0200 |
| commit | f088c3de3dd1baf87fc39882adc3e9e5cb7f8a4d (patch) | |
| tree | d2048edd5f04511878ca025ebbdca6252fc5e4fe /src | |
| parent | 4ded387d3bb926982ea00f40ab01ece7ffdeaf94 (diff) | |
| download | qtmaildir-f088c3de3dd1baf87fc39882adc3e9e5cb7f8a4d.tar.gz qtmaildir-f088c3de3dd1baf87fc39882adc3e9e5cb7f8a4d.zip | |
test: a write during a run queues one more calendar sync
Diffstat (limited to 'src')
| -rw-r--r-- | src/calendarsync.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/calendarsync.cpp b/src/calendarsync.cpp index 2fc555f..38d0c07 100644 --- a/src/calendarsync.cpp +++ b/src/calendarsync.cpp @@ -38,8 +38,12 @@ CalendarSync::CalendarSync(const QString &command, int delayMs, QObject *parent) }); connect(&m_process, &QProcess::errorOccurred, this, [this](QProcess::ProcessError error) { - if (error == QProcess::FailedToStart) + if (error == QProcess::FailedToStart) { + // finished() never fires for a failed start, so the queued-run flag + // would otherwise leak into the next successful run. + m_again = false; emit finished(false, m_process.errorString()); + } }); } |
