aboutsummaryrefslogtreecommitdiffstats
path: root/src/calendarsync.cpp
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-24 16:45:18 +0200
committerDanilo M. <danix@danix.xyz>2026-09-24 16:45:18 +0200
commitf088c3de3dd1baf87fc39882adc3e9e5cb7f8a4d (patch)
treed2048edd5f04511878ca025ebbdca6252fc5e4fe /src/calendarsync.cpp
parent4ded387d3bb926982ea00f40ab01ece7ffdeaf94 (diff)
downloadqtmaildir-f088c3de3dd1baf87fc39882adc3e9e5cb7f8a4d.tar.gz
qtmaildir-f088c3de3dd1baf87fc39882adc3e9e5cb7f8a4d.zip
test: a write during a run queues one more calendar sync
Diffstat (limited to 'src/calendarsync.cpp')
-rw-r--r--src/calendarsync.cpp6
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());
+ }
});
}