docker: Show error when docker application cannot be found/started

Change-Id: I752ec9fe7bf0db5d26828a175363ef08c5c9bf02
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-04-04 17:03:16 +02:00
parent c246caf7a9
commit eb696b4f85

View File

@@ -1624,11 +1624,8 @@ public:
m_log->append(DockerDevice::tr("Error: %1").arg(out));
});
connect(m_process, &Utils::QtcProcess::finished,
this, [this, errorLabel]() {
if (m_process->exitCode() != 0) {
errorLabel->setVisible(true);
}
connect(m_process, &QtcProcess::done, errorLabel, [errorLabel, this] {
errorLabel->setVisible(m_process->result() != ProcessResult::FinishedWithSuccess);
});
connect(m_view->selectionModel(), &QItemSelectionModel::selectionChanged, [this] {