1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Plugins: Don't exclude allowed plugins from available plugins list

This fixes issue that the allowed plugin (enabled by user) would
disappear from the all plugins list (in preferences) after failing
to load on startup.
This commit is contained in:
David Rosca 2014-10-26 17:10:24 +01:00
parent 5cf75ce2c0
commit 3962c63927

View File

@ -180,9 +180,6 @@ void Plugins::loadAvailablePlugins()
QDir pluginsDir = QDir(dir); QDir pluginsDir = QDir(dir);
foreach (const QString &fileName, pluginsDir.entryList(QDir::Files)) { foreach (const QString &fileName, pluginsDir.entryList(QDir::Files)) {
const QString absolutePath = pluginsDir.absoluteFilePath(fileName); const QString absolutePath = pluginsDir.absoluteFilePath(fileName);
if (m_allowedPlugins.contains(absolutePath)) {
continue;
}
QPluginLoader* loader = new QPluginLoader(absolutePath); QPluginLoader* loader = new QPluginLoader(absolutePath);
PluginInterface* iPlugin = qobject_cast<PluginInterface*>(loader->instance()); PluginInterface* iPlugin = qobject_cast<PluginInterface*>(loader->instance());