diff options
| author | Qudix <17361645+Qudix@users.noreply.github.com> | 2020-11-10 20:07:09 -0600 |
|---|---|---|
| committer | Qudix <17361645+Qudix@users.noreply.github.com> | 2020-11-10 20:07:09 -0600 |
| commit | b6f36b03a559099efa8b9f701c22587b46fe1faf (patch) | |
| tree | 188a20013d14ecd8e420007397074147fdea6c7e /src/plugincontainer.cpp | |
| parent | 62caad3cdbf6b616594c1d9d17d837f942ae110b (diff) | |
| parent | e1dceec67a53f5332b2f92ac2901309f0c0ed882 (diff) | |
Merge branch 'master' of https://github.com/ModOrganizer2/modorganizer into master
Diffstat (limited to 'src/plugincontainer.cpp')
| -rw-r--r-- | src/plugincontainer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugincontainer.cpp b/src/plugincontainer.cpp index dd4ccbb1..5992f28d 100644 --- a/src/plugincontainer.cpp +++ b/src/plugincontainer.cpp @@ -265,9 +265,13 @@ bool PluginContainer::registerPlugin(QObject *plugin, const QString &fileName) }
{ // game plugin
IPluginGame *game = qobject_cast<IPluginGame*>(plugin);
+
+ if (game) {
+ game->detectGame();
+ }
+
if (initPlugin(game)) {
bf::at_key<IPluginGame>(m_Plugins).push_back(game);
- game->detectGame();
registerGame(game);
return true;
}
|
