summaryrefslogtreecommitdiff
path: root/src/nexusinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/nexusinterface.cpp')
-rw-r--r--src/nexusinterface.cpp8
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 "";