1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

WebView: Use correct check if the host lookup succeeds

This commit is contained in:
David Rosca 2015-11-06 13:16:36 +01:00
parent bcf50f9343
commit 638c22486c

View File

@ -178,7 +178,7 @@ void WebView::load(const LoadRequest &request)
) { ) {
// FIXME: This is blocking... // FIXME: This is blocking...
QHostInfo info = QHostInfo::fromName(reqUrl.path()); QHostInfo info = QHostInfo::fromName(reqUrl.path());
if (info.error() != QHostInfo::HostNotFound) { if (info.error() == QHostInfo::NoError) {
LoadRequest req = request; LoadRequest req = request;
req.setUrl(QUrl(QSL("http://") + reqUrl.path())); req.setUrl(QUrl(QSL("http://") + reqUrl.path()));
loadRequest(req); loadRequest(req);