KillAppService: Use queued connection for signal operation

Otherwise the m_signalOperation may be deleted directly
from it's signal handler.

Change-Id: I38ae09ac8b2cb936459592b006c5330fbfa3027c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2022-11-22 10:48:42 +01:00
parent 0ced4ab061
commit 8dc13379dd

View File

@@ -60,7 +60,7 @@ void KillAppService::doDeploy()
return; return;
} }
connect(m_signalOperation.data(), &DeviceProcessSignalOperation::finished, connect(m_signalOperation.data(), &DeviceProcessSignalOperation::finished,
this, &KillAppService::handleSignalOpFinished); this, &KillAppService::handleSignalOpFinished, Qt::QueuedConnection);
emit progressMessage(Tr::tr("Trying to kill \"%1\" on remote device...") emit progressMessage(Tr::tr("Trying to kill \"%1\" on remote device...")
.arg(m_remoteExecutable.path())); .arg(m_remoteExecutable.path()));
m_signalOperation->killProcess(m_remoteExecutable.path()); m_signalOperation->killProcess(m_remoteExecutable.path());