mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Fix parenting WebPage when created from WebPage::createWindow
Closes #1949
This commit is contained in:
parent
236eea97f0
commit
838ec366de
@ -124,6 +124,7 @@ void WebView::setPage(WebPage *page)
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_page = page;
|
m_page = page;
|
||||||
|
m_page->setParent(this);
|
||||||
QWebEngineView::setPage(m_page);
|
QWebEngineView::setPage(m_page);
|
||||||
|
|
||||||
connect(m_page, SIGNAL(privacyChanged(bool)), this, SIGNAL(privacyChanged(bool)));
|
connect(m_page, SIGNAL(privacyChanged(bool)), this, SIGNAL(privacyChanged(bool)));
|
||||||
|
@ -119,7 +119,7 @@ WebTab::WebTab(BrowserWindow* window)
|
|||||||
|
|
||||||
m_webView = new TabbedWebView(this);
|
m_webView = new TabbedWebView(this);
|
||||||
m_webView->setBrowserWindow(m_window);
|
m_webView->setBrowserWindow(m_window);
|
||||||
m_webView->setWebPage(new WebPage(this));
|
m_webView->setWebPage(new WebPage);
|
||||||
m_webView->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
|
m_webView->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
|
||||||
|
|
||||||
m_locationBar = new LocationBar(m_window);
|
m_locationBar = new LocationBar(m_window);
|
||||||
|
Loading…
Reference in New Issue
Block a user