diff --git a/src/lib/adblock/adblockicon.cpp b/src/lib/adblock/adblockicon.cpp index 043e9e097..5d0a755d5 100644 --- a/src/lib/adblock/adblockicon.cpp +++ b/src/lib/adblock/adblockicon.cpp @@ -124,13 +124,13 @@ void AdBlockIcon::webPageChanged(WebPage *page) updateState(); if (m_page) { - disconnect(m_page, &QWebEnginePage::urlChanged, this, &AdBlockIcon::updateState); + disconnect(m_page.data(), &QWebEnginePage::urlChanged, this, &AdBlockIcon::updateState); } m_page = page; if (m_page) { - connect(m_page, &QWebEnginePage::urlChanged, this, &AdBlockIcon::updateState); + connect(m_page.data(), &QWebEnginePage::urlChanged, this, &AdBlockIcon::updateState); } }