QueryContext: Connect to done() signal instead of finished()

Change-Id: I642138a90c4e13fcdb4dbb065e26aa5e3d509b9e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-06-21 16:24:57 +02:00
parent d8ad6b2a9e
commit 35c3d9430b

View File

@@ -375,7 +375,7 @@ void QueryContext::timeout()
arg(timeOutMS / 1000), QMessageBox::NoButton, parent);
QPushButton *terminateButton = box.addButton(tr("Terminate"), QMessageBox::YesRole);
box.addButton(tr("Keep Running"), QMessageBox::NoRole);
connect(&m_process, &QtcProcess::finished, &box, &QDialog::reject);
connect(&m_process, &QtcProcess::done, &box, &QDialog::reject);
box.exec();
if (m_process.state() != QProcess::Running)
return;