summaryrefslogtreecommitdiff
path: root/src/modinfo.cpp
diff options
context:
space:
mode:
authorBrian Munro <brian.alexander.munro@gmail.com>2018-08-02 09:15:12 +0200
committerGitHub <noreply@github.com>2018-08-02 09:15:12 +0200
commit9a3a15b1f6339589be97e2546b7d532d30abc292 (patch)
tree2776d6834b92fdc95b5b26ab43e9e743e10c1128 /src/modinfo.cpp
parent886fb10288baf4f52af2ad812a1c2121e138a16e (diff)
parent1ea43586d8eb304d8e91bf7f1480d7e4db5ef05f (diff)
Merge pull request #454 from Modorganizer2/Develop
Release 2.1.4
Diffstat (limited to 'src/modinfo.cpp')
-rw-r--r--src/modinfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modinfo.cpp b/src/modinfo.cpp
index bd4c1254..91f3c1a1 100644
--- a/src/modinfo.cpp
+++ b/src/modinfo.cpp
@@ -102,6 +102,7 @@ QString ModInfo::getContentTypeName(int contentType)
case CONTENT_SKSE: return tr("Script Extender");
case CONTENT_SKYPROC: return tr("SkyProc Tools");
case CONTENT_MCM: return tr("MCM Data");
+ case CONTENT_INI: return tr("INI files");
default: throw MyException(tr("invalid content type %1").arg(contentType));
}
}
@@ -286,9 +287,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();