From 675f148598a9efab203110f9dd225606a3fbccbd Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 24 Jan 2019 10:10:10 +0100 Subject: [PATCH] FalkonSchemeHandler: Load contents immediately BUG: 403129 FIXED-IN: 3.1.0 --- src/lib/network/schemehandlers/falkonschemehandler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/network/schemehandlers/falkonschemehandler.cpp b/src/lib/network/schemehandlers/falkonschemehandler.cpp index ed47c6966..7fd132933 100644 --- a/src/lib/network/schemehandlers/falkonschemehandler.cpp +++ b/src/lib/network/schemehandlers/falkonschemehandler.cpp @@ -88,8 +88,7 @@ FalkonSchemeReply::FalkonSchemeReply(QWebEngineUrlRequestJob *job, QObject *pare , m_job(job) { m_pageName = m_job->requestUrl().path(); - - QTimer::singleShot(0, this, &FalkonSchemeReply::loadPage); + loadPage(); } void FalkonSchemeReply::loadPage() @@ -116,7 +115,6 @@ void FalkonSchemeReply::loadPage() m_buffer.open(QIODevice::ReadOnly); lock.unlock(); - open(QIODevice::ReadOnly); emit readyRead(); m_loaded = true;