diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-04 07:44:24 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-04 07:45:56 +0100 |
| commit | 47626d654f2493cddf2126cd5e08e8be7efb67a8 (patch) | |
| tree | 7e7b5877329b0bf7496d0340887079081b5846e1 /src | |
| parent | 4240f10260cbffbff52bf2d549100f4690a642b5 (diff) | |
Clarify comment.
Diffstat (limited to 'src')
| -rw-r--r-- | src/organizerproxy.cpp | 2 | ||||
| -rw-r--r-- | src/plugincontainer.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/organizerproxy.cpp b/src/organizerproxy.cpp index 13b91ff4..1f73ee13 100644 --- a/src/organizerproxy.cpp +++ b/src/organizerproxy.cpp @@ -43,7 +43,7 @@ OrganizerProxy::OrganizerProxy(OrganizerCore* organizer, PluginContainer* plugin OrganizerProxy::~OrganizerProxy()
{
- log::debug("~OrganizerProxy() for {}.", m_PluginName);
+ log::debug("Deleting organizer proxy for plugin '{}'.", m_PluginName);
for (auto& conn : m_Connections) {
conn.disconnect();
}
diff --git a/src/plugincontainer.cpp b/src/plugincontainer.cpp index 3579a0d3..9da467a4 100644 --- a/src/plugincontainer.cpp +++ b/src/plugincontainer.cpp @@ -855,8 +855,8 @@ void PluginContainer::unloadPlugin(MOBase::IPlugin* plugin, QObject* object) unregisterGame(game);
}
- // We need to do this BEFORE unloading from the proxy otherwise the
- // qobject_cast won't work.
+ // We need to remove from the m_Plugins maps BEFORE unloading from the proxy
+ // otherwise the qobject_cast to check the plugin type will not work.
bf::for_each(m_Plugins, [object](auto& t) {
using type = typename std::decay_t<decltype(t.second)>::value_type;
|
