forked from qt-creator/qt-creator
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:
@@ -60,7 +60,7 @@ void KillAppService::doDeploy()
|
||||
return;
|
||||
}
|
||||
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...")
|
||||
.arg(m_remoteExecutable.path()));
|
||||
m_signalOperation->killProcess(m_remoteExecutable.path());
|
||||
|
Reference in New Issue
Block a user