From f088c3de3dd1baf87fc39882adc3e9e5cb7f8a4d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 24 Sep 2026 16:45:18 +0200 Subject: test: a write during a run queues one more calendar sync --- src/calendarsync.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/calendarsync.cpp') 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()); + } }); } -- cgit v1.2.3