Use a queued connection to handle SyncthingProcess::finished

This commit is contained in:
Martchus 2021-06-21 17:45:51 +02:00
parent eac3b31727
commit 765a323b47
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ SyncthingProcess::SyncthingProcess(QObject *parent)
setProcessChannelMode(QProcess::MergedChannels);
connect(this, &SyncthingProcess::started, this, &SyncthingProcess::handleStarted);
connect(this, static_cast<void (SyncthingProcess::*)(int exitCode, QProcess::ExitStatus exitStatus)>(&SyncthingProcess::finished), this,
&SyncthingProcess::handleFinished);
&SyncthingProcess::handleFinished, Qt::QueuedConnection);
connect(&m_killTimer, &QTimer::timeout, this, &SyncthingProcess::confirmKill);
}