diff --git a/src/lib/adblock/adblockmanager.cpp b/src/lib/adblock/adblockmanager.cpp index 700d7919e..8f8f68640 100644 --- a/src/lib/adblock/adblockmanager.cpp +++ b/src/lib/adblock/adblockmanager.cpp @@ -200,6 +200,8 @@ AdBlockSubscription* AdBlockManager::addSubscription(const QString &title, const subscription->loadSubscription(m_disabledRules); m_subscriptions.insert(m_subscriptions.count() - 1, subscription); + connect(subscription, SIGNAL(subscriptionUpdated()), mApp, SLOT(reloadUserStyleSheet())); + connect(subscription, SIGNAL(subscriptionChanged()), m_matcher, SLOT(update())); return subscription; } @@ -213,7 +215,9 @@ bool AdBlockManager::removeSubscription(AdBlockSubscription* subscription) QFile(subscription->filePath()).remove(); m_subscriptions.removeOne(subscription); + m_matcher->update(); delete subscription; + return true; }