HTTP example: Reflow QMessageBox usage in if-statement
It gets hard to read like that. And update mentions of 'SSL' to 'TLS' in the message while we're there. Task-number: QTBUG-108874 Pick-to: 6.5 Change-Id: Ia7b27bfb3d99391b14ed396ca9a6400621022bf6 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
871f7a05db
commit
7df8ef0a10
@ -273,9 +273,10 @@ void HttpWindow::sslErrors(const QList<QSslError> &errors)
|
|||||||
errorString += error.errorString();
|
errorString += error.errorString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (QMessageBox::warning(this, tr("SSL Errors"),
|
if (QMessageBox::warning(this, tr("TLS Errors"),
|
||||||
tr("One or more SSL errors has occurred:\n%1").arg(errorString),
|
tr("One or more TLS errors has occurred:\n%1").arg(errorString),
|
||||||
QMessageBox::Ignore | QMessageBox::Abort) == QMessageBox::Ignore) {
|
QMessageBox::Ignore | QMessageBox::Abort)
|
||||||
|
== QMessageBox::Ignore) {
|
||||||
reply->ignoreSslErrors();
|
reply->ignoreSslErrors();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user