Fix Qt ownerships.

This commit is contained in:
Mikaël Capelle
2022-04-27 19:43:10 +02:00
parent f904e25e76
commit d0e883fd90
13 changed files with 213 additions and 34 deletions
+10 -10
View File
@@ -14,48 +14,48 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="proxypython.cpp" line="202"/>
<location filename="proxypython.cpp" line="207"/>
<source>ModOrganizer path contains a semicolon</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="proxypython.cpp" line="204"/>
<location filename="proxypython.cpp" line="209"/>
<source>Python DLL not found</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="proxypython.cpp" line="206"/>
<location filename="proxypython.cpp" line="211"/>
<source>Invalid Python DLL</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="proxypython.cpp" line="208"/>
<location filename="proxypython.cpp" line="213"/>
<source>Initializing Python failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="proxypython.cpp" line="210"/>
<location filename="proxypython.cpp" line="240"/>
<location filename="proxypython.cpp" line="215"/>
<location filename="proxypython.cpp" line="245"/>
<source>invalid problem key %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="proxypython.cpp" line="218"/>
<location filename="proxypython.cpp" line="223"/>
<source>The path to Mod Organizer (%1) contains a semicolon. &lt;br&gt;While this is legal on NTFS drives, many softwares do not handle it correctly.&lt;br&gt;Unfortunately MO depends on libraries that seem to fall into that group.&lt;br&gt;As a result the python plugin cannot be loaded, and the only solution we canoffer is to remove the semicolon or move MO to a path without a semicolon.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="proxypython.cpp" line="229"/>
<location filename="proxypython.cpp" line="234"/>
<source>The Python plugin DLL was not found, maybe your antivirus deleted it. Re-installing MO2 might fix the problem.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="proxypython.cpp" line="232"/>
<location filename="proxypython.cpp" line="237"/>
<source>The Python plugin DLL is invalid, maybe your antivirus is blocking it. Re-installing MO2 and adding exclusions for it to your AV might fix the problem.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="proxypython.cpp" line="237"/>
<location filename="proxypython.cpp" line="242"/>
<source>The initialization of the Python plugin DLL failed, unfortunately without any details.</source>
<translation type="unfinished"></translation>
</message>
+6 -1
View File
@@ -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)