diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-07-11 05:45:58 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-07-16 15:46:43 -0500 |
| commit | 7f3dc586b0422a31d34d00fcf23b2f2922418650 (patch) | |
| tree | 6d13de3a5c35182c1f6d3975b439e3e064f0b86a /src/modinfo.cpp | |
| parent | 2524d65441e99cbb14037144b8af60e1d25e1179 (diff) | |
Redirect endorsements of MO2 to the Skyrim SE nexus
Diffstat (limited to 'src/modinfo.cpp')
| -rw-r--r-- | src/modinfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modinfo.cpp b/src/modinfo.cpp index bd4c1254..1f2520c9 100644 --- a/src/modinfo.cpp +++ b/src/modinfo.cpp @@ -286,9 +286,9 @@ int ModInfo::checkAllForUpdate(PluginContainer *pluginContainer, QObject *receiv int result = 0; std::vector<int> modIDs; - //I ought to store this, it's used elsewhere - IPluginGame const *game = qApp->property("managed_game").value<IPluginGame *>(); - if (game->nexusModOrganizerID()) { + // Normally this would be the managed game but MO2 is only uploaded to the Skyrim SE site right now + IPluginGame const *game = pluginContainer->managedGame("Skyrim Special Edition"); + if (game && game->nexusModOrganizerID()) { modIDs.push_back(game->nexusModOrganizerID()); checkChunkForUpdate(pluginContainer, modIDs, receiver, game->gameShortName()); modIDs.clear(); |
