Commit d80f5749 authored by T.J. Corona's avatar T.J. Corona

PluginSupport: fix active manager registration

parent c4c5e643
......@@ -71,8 +71,7 @@ private:
bool operator()(const RegisterFunction& lhs, const RegisterFunction& rhs) const
return<bool (*)(const std::weak_ptr<PluginClientBase>&)>() <<bool (*)(const std::weak_ptr<PluginClientBase>&)>();
return &lhs < &rhs;
......@@ -57,7 +57,7 @@ void PluginManager::setRegistryStatus(const std::shared_ptr<Manager>& manager, b
// ...then we also construct a functor for registering this manager to
// future plugins. It accepts as input the plugin client and returns true is
// the manager has not yet expired.
std::weak_ptr<Manager> weakMgr;
std::weak_ptr<Manager> weakMgr = manager;
auto registerToFuturePlugins = [=](const std::weak_ptr<PluginClientBase>& pluginClient) {
if (auto manager = weakMgr.lock())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment