From 84be4c5440ade62ab56ef761a2fe62325558dd78 Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Fri, 22 Mar 2019 00:43:49 -0500 Subject: Don't delete the Nexus ID on invalid update requests --- src/mainwindow.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a0632d3c..669820be 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -5878,18 +5878,7 @@ void MainWindow::nxmDownloadURLs(QString, int, int, QVariant, QVariant resultDat void MainWindow::nxmRequestFailed(QString gameName, int modID, int, QVariant, int, QNetworkReply::NetworkError error, const QString &errorString) { if (error == QNetworkReply::ContentAccessDenied || error == QNetworkReply::ContentNotFoundError) { - QString gameNameReal; - for (IPluginGame *game : m_PluginContainer.plugins()) { - if (game->gameNexusName() == gameName) { - gameNameReal = game->gameShortName(); - break; - } - } - std::vector modsList = ModInfo::getByModID(gameNameReal, modID); - for (auto mod : modsList) { - mod->setNexusID(-1); - } - MessageDialog::showMessage(tr("Mod ID %1 no longer seems to be available on Nexus.").arg(modID), this); + qDebug(qUtf8Printable(tr("Mod ID %1 no longer seems to be available on Nexus.").arg(modID))); } else { MessageDialog::showMessage(tr("Request to Nexus failed: %1").arg(errorString), this); } -- cgit v1.3.1