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:
parent
bcf50f9343
commit
638c22486c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user