summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-10-15 18:44:39 +0100
committerThomas Tanner <trtanner@btinternet.com>2015-10-15 18:44:39 +0100
commitd4754f4d3ca7451d784e89ae1ddef240666dfdf8 (patch)
treeb5b47d31c10e3b913de352c0c89337a3e1efee3e /src/mainwindow.cpp
parent1cb0a49dfc83dbc05850bd4b97ee7e5a48d2879a (diff)
Fix for some nexus fomods having the old version of the mod link and not the new version.
Also fixed a lot of const correctness things
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 1dca599d..9982e928 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -3120,7 +3120,9 @@ void MainWindow::on_modList_customContextMenuRequested(const QPoint &pos)
menu->addAction(tr("Visit on Nexus"), this, SLOT(visitOnNexus_clicked()));
}
- if (info->getURL() != "") {
+ if (info->getURL() != "" &&
+ !GameInfo::instance().isValidModURL(info->getNexusID(),
+ info->getURL().toStdWString())) {
menu->addAction(tr("Visit web page"), this, SLOT(visitWebPage_clicked()));
}