Fix showing external links via built-in web view
Pass profile to new web page (that is being created when a `target="blank"` link is clicked) to avoid running into `Can not adopt content from a different WebEngineProfile.`.
This commit is contained in:
parent
1293a36613
commit
21144421de
|
@ -107,7 +107,7 @@ bool WebPage::isSamePage(const QUrl &url1, const QUrl &url2)
|
|||
SYNCTHINGWIDGETS_WEB_PAGE *WebPage::createWindow(SYNCTHINGWIDGETS_WEB_PAGE::WebWindowType type)
|
||||
{
|
||||
Q_UNUSED(type)
|
||||
return new WebPage;
|
||||
return new WebPage(profile());
|
||||
}
|
||||
|
||||
#ifdef SYNCTHINGWIDGETS_USE_WEBENGINE
|
||||
|
|
Loading…
Reference in New Issue