1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +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...
QHostInfo info = QHostInfo::fromName(reqUrl.path());
if (info.error() != QHostInfo::HostNotFound) {
if (info.error() == QHostInfo::NoError) {
LoadRequest req = request;
req.setUrl(QUrl(QSL("http://") + reqUrl.path()));
loadRequest(req);