forked from qt-creator/qt-creator
QtcProcess: Connect to done() signal instead of finished()
Change-Id: Ie9005e2dc225907e46bb46086a663763b58c5152 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1034,7 +1034,7 @@ QtcProcess::QtcProcess(QObject *parent)
|
|||||||
Q_UNUSED(qProcessProcessErrorMeta)
|
Q_UNUSED(qProcessProcessErrorMeta)
|
||||||
|
|
||||||
if (processLog().isDebugEnabled()) {
|
if (processLog().isDebugEnabled()) {
|
||||||
connect(this, &QtcProcess::finished, [this] {
|
connect(this, &QtcProcess::done, [this] {
|
||||||
if (!d->m_process.get())
|
if (!d->m_process.get())
|
||||||
return;
|
return;
|
||||||
const QVariant n = d->m_process.get()->property(QTC_PROCESS_NUMBER);
|
const QVariant n = d->m_process.get()->property(QTC_PROCESS_NUMBER);
|
||||||
|
Reference in New Issue
Block a user