From a3d014bd8d2c1d67b9600e807d44eb22093fda69 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Thu, 16 Jul 2020 19:59:14 +0200 Subject: [PATCH] Fix qt 5.15 webengine not displaying doc type icons by setting the base URL to file:/// (an empty one used to work) --- src/qtgui/reslist.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qtgui/reslist.cpp b/src/qtgui/reslist.cpp index 916da284..95685289 100644 --- a/src/qtgui/reslist.cpp +++ b/src/qtgui/reslist.cpp @@ -811,7 +811,10 @@ void ResList::displayPage() m_pager->displayPage(theconfig); #if defined(USING_WEBENGINE) || defined(USING_WEBKIT) - setHtml(m_text); + // webengine from qt 5.15 on won't load local images if the base URL is + // not set (previous versions worked with an empty one). Can't hurt anyway. + const static QUrl baseUrl("file:///"); + setHtml(m_text, baseUrl); #endif LOGDEB0("ResList::displayPg: hasNext " << m_pager->hasNext() <<