| 391 | } |
| 392 | |
| 393 | void AdBlockManager::toggleSubscriptionEnabled(int index) |
| 394 | { |
| 395 | if (index < 0 || index >= static_cast<int>(m_subscriptions.size())) |
| 396 | return; |
| 397 | |
| 398 | AdBlockSubscription &sub = m_subscriptions.at(index); |
| 399 | sub.setEnabled(!sub.isEnabled()); |
| 400 | |
| 401 | // Reset filter data |
| 402 | reloadSubscriptions(); |
| 403 | } |
| 404 | |
| 405 | void AdBlockManager::removeSubscription(int index) |
| 406 | { |
no test coverage detected