Commit afba0c22 authored by Laurent Montel's avatar Laurent Montel 😁

Add debug

parent 7e5b1375
......@@ -17,6 +17,7 @@
#include "adblockmanager.h"
#include "adblockmatcher.h"
#include "globalsettings_webengineurlinterceptoradblock.h"
#include <QUrl>
using namespace AdBlock;
......@@ -59,11 +60,14 @@ AdblockManager::~AdblockManager()
void AdblockManager::reloadConfig()
{
mEnabled = AdBlock::AdBlockSettings::self()->adBlockEnabled();
qDebug()<<" void AdblockManager::reloadConfig()"<< mEnabled << " "<<this;
//TODO
}
bool AdblockManager::isEnabled() const
{
qDebug()<<" bool AdblockManager::isEnabled() const"<<mEnabled << " "<<this;
return mEnabled;
}
......
......@@ -338,8 +338,8 @@ void AdBlockSettingWidget::save()
// -------------------------------------------------------------------------------
mChanged = false;
Q_EMIT changed(false);
AdBlock::AdblockManager::self()->reloadConfig();
AdBlock::AdBlockSettings::self()->save();
AdBlock::AdblockManager::self()->reloadConfig();
}
void AdBlockSettingWidget::updateCheckBox()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment