diff options
Diffstat (limited to 'src/calendarsync.cpp')
| -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()); + } }); } |
