Fix AdBlock menu crash.
This commit is contained in:
parent
85d22c93dc
commit
95ee6be7b6
|
@ -43,9 +43,9 @@ Q_GLOBAL_STATIC(AdBlockManager, qz_adblock_manager)
|
||||||
|
|
||||||
AdBlockManager::AdBlockManager(QObject* parent)
|
AdBlockManager::AdBlockManager(QObject* parent)
|
||||||
: QObject(parent), m_loaded(false), m_enabled(true), m_matcher(new AdBlockMatcher(this)), m_interceptor(new AdBlockUrlInterceptor(this)) {
|
: QObject(parent), m_loaded(false), m_enabled(true), m_matcher(new AdBlockMatcher(this)), m_interceptor(new AdBlockUrlInterceptor(this)) {
|
||||||
|
load();
|
||||||
m_adblockIcon = new AdBlockIcon(this);
|
m_adblockIcon = new AdBlockIcon(this);
|
||||||
m_adblockIcon->setObjectName(QSL("m_adblockIconAction"));
|
m_adblockIcon->setObjectName(QSL("m_adblockIconAction"));
|
||||||
load();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AdBlockManager::~AdBlockManager() {
|
AdBlockManager::~AdBlockManager() {
|
||||||
|
|
Loading…
Reference in New Issue