diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2021-02-20 12:49:08 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2021-02-20 12:49:08 -0500 |
| commit | 2bd755743cd83ab06db66a254f7295d3fbeb776f (patch) | |
| tree | 8e615d48522ac622c938ffe9687282a0fb1f2315 /src | |
| parent | 9eb1dd0ec071e1a20fd6ecefdb3b6a17182be67a (diff) | |
clarified comment
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugincontainer.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugincontainer.cpp b/src/plugincontainer.cpp index 0ebe924d..93a66ece 100644 --- a/src/plugincontainer.cpp +++ b/src/plugincontainer.cpp @@ -953,8 +953,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
+ // this will clear several structures that can hold on to pointers to
+ // plugins, as well as read the plugin blacklist from the ini file, which
+ // is used in loadPlugins() below to skip plugins
+ //
+ // note that the first thing loadPlugins() does is call unloadPlugins(),
+ // so this makes sure the blacklist is always available
m_Organizer->settings().plugins().clearPlugins();
}
|
