diff options
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();
}
|
