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:
Martchus 2024-04-08 18:07:27 +02:00
parent 1293a36613
commit 21144421de
1 changed files with 1 additions and 1 deletions

View File

@ -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