summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2018-05-02 13:48:31 -0500
committerSilarn <jrim@rimpo.org>2018-05-02 13:48:31 -0500
commit6588a81b7f52e94c4fca4a7378ca13307d51b58e (patch)
tree0b660d4174240e6745f4ca26140ee1eeec0774a8
parent2091330af253399805a08c6d8f142261fc2fc8f6 (diff)
Only check for the mod organizer endorsement if the ID is set
-rw-r--r--src/modinfo.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modinfo.cpp b/src/modinfo.cpp
index 6b3fd528..e505bacc 100644
--- a/src/modinfo.cpp
+++ b/src/modinfo.cpp
@@ -288,9 +288,11 @@ int ModInfo::checkAllForUpdate(PluginContainer *pluginContainer, QObject *receiv
//I ought to store this, it's used elsewhere
IPluginGame const *game = qApp->property("managed_game").value<IPluginGame *>();
- modIDs.push_back(game->nexusModOrganizerID());
- checkChunkForUpdate(pluginContainer, modIDs, receiver, game->gameShortName());
- modIDs.clear();
+ if (game->nexusModOrganizerID()) {
+ modIDs.push_back(game->nexusModOrganizerID());
+ checkChunkForUpdate(pluginContainer, modIDs, receiver, game->gameShortName());
+ modIDs.clear();
+ }
std::multimap<QString, QSharedPointer<ModInfo>> organizedGames;
for (auto mod : s_Collection) {