diff options
| author | Chris Bessent <lost.dragonist@gmail.com> | 2021-11-23 20:05:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-23 20:05:29 -0700 |
| commit | fc40619fd9383eaf2bc7d0ba14695404b7f55bdb (patch) | |
| tree | 7c6dbfbdea980ac1913e3066a5f2fb50e196f9bd /src/nexusinterface.cpp | |
| parent | 6ab88d5de108887dd97e0899e2554ee36cc3bdee (diff) | |
| parent | 565f2fddf4cf29fec3f8626ae4f7acba8aef615c (diff) | |
Merge pull request #1621 from LostDragonist/misc_fixes
Misc fixes
Diffstat (limited to 'src/nexusinterface.cpp')
| -rw-r--r-- | src/nexusinterface.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nexusinterface.cpp b/src/nexusinterface.cpp index 1364d7e1..2e4496e1 100644 --- a/src/nexusinterface.cpp +++ b/src/nexusinterface.cpp @@ -371,7 +371,13 @@ QString NexusInterface::getGameURL(QString gameName) const { IPluginGame *game = getGame(gameName); if (game != nullptr) { - return "https://www.nexusmods.com/" + game->gameNexusName().toLower(); + QString gameNexusName = game->gameNexusName().toLower(); + if (gameNexusName.isEmpty()) { + return ""; + } + else { + return "https://www.nexusmods.com/" + gameNexusName; + } } else { log::error("getGameURL can't find plugin for {}", gameName); return ""; |
