mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +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:
parent
5cf75ce2c0
commit
3962c63927
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user