summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-11-26 21:02:45 +0000
committerThomas Tanner <trtanner@btinternet.com>2015-11-26 21:02:45 +0000
commit2025145ff6e1ddf1b433eae2f9418e10a6fea82e (patch)
treeb8ebd015f5e718f03a9f55389e53d43fd0557d31 /src/mainwindow.cpp
parent1b1fc247dfc4eade8ab34679ca7c58e850a0a1a3 (diff)
Replaced the IPluginGame getNexusDisplayURL with some APIs in NexusInterface
It makes more sense to have them here as they have very little to do with the game, more to do with the origin of the mod.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 3f3d5286..dd5a1b01 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2529,7 +2529,7 @@ void MainWindow::visitOnNexus_clicked()
{
int modID = m_OrganizerCore.modList()->data(m_OrganizerCore.modList()->index(m_ContextRow, 0), Qt::UserRole).toInt();
if (modID > 0) {
- nexusLinkActivated(QString("%1/mods/%2").arg(m_OrganizerCore.managedGame()->getNexusDisplayURL()).arg(modID));
+ nexusLinkActivated(NexusInterface::instance()->getModURL(modID));
} else {
MessageDialog::showMessage(tr("Nexus ID for this Mod is unknown"), this);
}
@@ -3422,7 +3422,7 @@ void MainWindow::on_actionSettings_triggered()
void MainWindow::on_actionNexus_triggered()
{
::ShellExecuteW(nullptr, L"open",
- m_OrganizerCore.managedGame()->getNexusDisplayURL().toStdWString().c_str(),
+ NexusInterface::instance()->getGameURL().toStdWString().c_str(),
nullptr, nullptr, SW_SHOWNORMAL);
}
@@ -3818,7 +3818,7 @@ void MainWindow::on_actionEndorseMO_triggered()
{
if (QMessageBox::question(this, tr("Endorse Mod Organizer"),
tr("Do you want to endorse Mod Organizer on %1 now?").arg(
- m_OrganizerCore.managedGame()->getNexusDisplayURL()),
+ NexusInterface::instance()->getGameURL()),
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
NexusInterface::instance()->requestToggleEndorsement(
m_OrganizerCore.managedGame()->getNexusModOrganizerID(), true, this, QVariant(), QString());