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