mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
WebScrollBarManager: Guard against ScrollBarData being deleted
This commit is contained in:
parent
fcc356e4df
commit
f9a0d202de
@ -142,7 +142,7 @@ void WebScrollBarManager::addWebView(WebView *view)
|
||||
|
||||
QPointer<WebView> p(view);
|
||||
view->page()->runJavaScript(source, WebPage::SafeJsWorld, [=](const QVariant &res) {
|
||||
if (!p) {
|
||||
if (!p || !m_scrollbars.contains(view)) {
|
||||
return;
|
||||
}
|
||||
const QVariantMap map = res.toMap();
|
||||
|
Loading…
Reference in New Issue
Block a user