From 765a323b47142161f9692cf48154c36bb429fd10 Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 21 Jun 2021 17:45:51 +0200 Subject: [PATCH] Use a queued connection to handle SyncthingProcess::finished --- connector/syncthingprocess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/syncthingprocess.cpp b/connector/syncthingprocess.cpp index 3084d3d..677000f 100644 --- a/connector/syncthingprocess.cpp +++ b/connector/syncthingprocess.cpp @@ -94,7 +94,7 @@ SyncthingProcess::SyncthingProcess(QObject *parent) setProcessChannelMode(QProcess::MergedChannels); connect(this, &SyncthingProcess::started, this, &SyncthingProcess::handleStarted); connect(this, static_cast(&SyncthingProcess::finished), this, - &SyncthingProcess::handleFinished); + &SyncthingProcess::handleFinished, Qt::QueuedConnection); connect(&m_killTimer, &QTimer::timeout, this, &SyncthingProcess::confirmKill); }