Adblock stuff work.

This commit is contained in:
Martin Rotter 2015-06-21 22:03:38 +02:00
parent 48891635fc
commit 4e168373b6

View File

@ -181,8 +181,8 @@ void AdBlockIcon::toggleCustomFilter() {
} }
const QString filter = action->data().toString(); const QString filter = action->data().toString();
AdBlockManager* manager = AdBlockManager::instance(); AdBlockManager *manager = AdBlockManager::instance();
AdBlockCustomList* custom_list = manager->customList(); AdBlockCustomList *custom_list = manager->customList();
if (custom_list->containsFilter(filter)) { if (custom_list->containsFilter(filter)) {
custom_list->removeFilter(filter); custom_list->removeFilter(filter);