mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 12:46:35 +01:00
Fixed setting WebPage to WebView more than once
This commit is contained in:
parent
189193a8b8
commit
2bf1638dea
@ -118,6 +118,10 @@ WebPage* WebView::page() const
|
||||
|
||||
void WebView::setPage(QWebPage* page)
|
||||
{
|
||||
if (m_page == page) {
|
||||
return;
|
||||
}
|
||||
|
||||
QWebView::setPage(page);
|
||||
m_page = qobject_cast<WebPage*>(page);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user