forked from qt-creator/qt-creator
QueryContext: Connect to done() signal instead of finished()
Change-Id: I642138a90c4e13fcdb4dbb065e26aa5e3d509b9e Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user