mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Fix Qt ownerships.
This commit is contained in:
@@ -169,7 +169,12 @@ QList<QObject*> ProxyPython::load(const QString& identifier)
|
||||
if (!m_Runner) {
|
||||
return {};
|
||||
}
|
||||
return m_Runner->load(identifier);
|
||||
|
||||
auto plugins = m_Runner->load(identifier);
|
||||
for (auto* plugin : plugins) {
|
||||
plugin->setParent(this);
|
||||
}
|
||||
return plugins;
|
||||
}
|
||||
|
||||
void ProxyPython::unload(const QString& identifier)
|
||||
|
||||
Reference in New Issue
Block a user