summaryrefslogtreecommitdiff
path: root/src/modinfo.cpp
diff options
context:
space:
mode:
authorAl <gabriel.cortesi@outlook.com>2018-07-17 02:08:17 +0200
committerGitHub <noreply@github.com>2018-07-17 02:08:17 +0200
commit103e3f3098539a8d3b75abc9bfb33344b2576ef9 (patch)
tree2d46b1c7f014021a6b3db1490a01fe827367c0e1 /src/modinfo.cpp
parent872c33fe5592eb84a2f6c01a2e47b72602b6139e (diff)
parent6552054e58d8c108c59b38335870529da78a27f1 (diff)
Merge pull request #438 from LostDragonist/Develop
Added support for selecting multiple mod for multiple modlist options. Added check for Windows Event Service before spawning new hooked processes.
Diffstat (limited to 'src/modinfo.cpp')
-rw-r--r--src/modinfo.cpp6
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();