diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2021-02-20 05:03:17 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2021-02-20 05:03:17 -0500 |
| commit | 9eb1dd0ec071e1a20fd6ecefdb3b6a17182be67a (patch) | |
| tree | a1b20bcb205e0f946f614e21d576a6adadb4c6cd | |
| parent | 1c87f1d8d47a540fd87c798adaa7f3060c0286fd (diff) | |
clearPlugins() must be called to load the blacklist or it will be empty when loadPlugins() runs
| -rw-r--r-- | src/plugincontainer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugincontainer.cpp b/src/plugincontainer.cpp index c703a36a..0ebe924d 100644 --- a/src/plugincontainer.cpp +++ b/src/plugincontainer.cpp @@ -952,6 +952,12 @@ void PluginContainer::reloadPlugin(QString const& filepath) void PluginContainer::unloadPlugins()
{
+ if (m_Organizer) {
+ // clearPlugins() must be called before loadPlugins() since it actually
+ // loads the blacklist
+ m_Organizer->settings().plugins().clearPlugins();
+ }
+
bf::for_each(m_Plugins, [](auto& t) { t.second.clear(); });
bf::for_each(m_AccessPlugins, [](auto& t) { t.second.clear(); });
m_Requirements.clear();
|
