1
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:
David Rosca 2016-04-17 09:08:03 +02:00
parent 236eea97f0
commit 838ec366de
2 changed files with 2 additions and 1 deletions

View File

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

View File

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