Fix qt 5.15 webengine not displaying doc type icons by setting the base URL to file:/// (an empty one used to work)
This commit is contained in:
parent
9a241f92a1
commit
a3d014bd8d
@ -811,7 +811,10 @@ void ResList::displayPage()
|
|||||||
m_pager->displayPage(theconfig);
|
m_pager->displayPage(theconfig);
|
||||||
|
|
||||||
#if defined(USING_WEBENGINE) || defined(USING_WEBKIT)
|
#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
|
#endif
|
||||||
|
|
||||||
LOGDEB0("ResList::displayPg: hasNext " << m_pager->hasNext() <<
|
LOGDEB0("ResList::displayPg: hasNext " << m_pager->hasNext() <<
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user