From d5608d823b199dd16c40caa9795d5abb6366aa98 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 18 Jan 2018 17:45:50 +0100 Subject: [PATCH] Enable plugins by default also in portable mode AdBlock now needs plugins enabled to be loaded. --- src/lib/plugins/plugins.cpp | 2 +- src/lib/preferences/pluginsmanager.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/plugins/plugins.cpp b/src/lib/plugins/plugins.cpp index c066440fd..ae3ea7f68 100644 --- a/src/lib/plugins/plugins.cpp +++ b/src/lib/plugins/plugins.cpp @@ -84,7 +84,7 @@ void Plugins::loadSettings() { Settings settings; settings.beginGroup("Plugin-Settings"); - m_pluginsEnabled = settings.value("EnablePlugins", !mApp->isPortable()).toBool(); + m_pluginsEnabled = settings.value("EnablePlugins", true).toBool(); m_allowedPlugins = settings.value("AllowedPlugins", QStringList()).toStringList(); settings.endGroup(); diff --git a/src/lib/preferences/pluginsmanager.cpp b/src/lib/preferences/pluginsmanager.cpp index da1eed66e..8b11aac50 100644 --- a/src/lib/preferences/pluginsmanager.cpp +++ b/src/lib/preferences/pluginsmanager.cpp @@ -1,6 +1,6 @@ /* ============================================================ * Falkon - Qt web browser -* Copyright (C) 2010-2017 David Rosca +* Copyright (C) 2010-2018 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,7 +41,7 @@ PluginsManager::PluginsManager(QWidget* parent) //Application Extensions Settings settings; settings.beginGroup("Plugin-Settings"); - bool appPluginsEnabled = settings.value("EnablePlugins", !mApp->isPortable()).toBool(); + bool appPluginsEnabled = settings.value("EnablePlugins", true).toBool(); settings.endGroup(); ui->allowAppPlugins->setChecked(appPluginsEnabled);