summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index c2b61614..f875c95c 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -5569,17 +5569,15 @@ void MainWindow::nxmDescriptionAvailable(QString gameName, int modID, QVariant u
void MainWindow::nxmEndorsementToggled(QString, int, QVariant, QVariant resultData, int)
{
QMap results = resultData.toMap();
- if (results["code"].toInt() == 200 || results["code"].toInt() == 201) {
- if (results["status"].toString().compare("Endorsed") == 0) {
- QMessageBox::information(this, tr("Thank you!"), tr("Thank you for your endorsement!"));
- } else if (results["status"].toString().compare("Abstained") == 0) {
- QMessageBox::information(this, tr("Okay."), tr("This mod will not be endorsed and will no longer ask you to endorse."));
- }
- ui->actionEndorseMO->setVisible(false);
- if (!disconnect(sender(), SIGNAL(nxmEndorsementToggled(QString, int, QVariant, QVariant, int)),
- this, SLOT(nxmEndorsementToggled(QString, int, QVariant, QVariant, int)))) {
- qCritical("failed to disconnect endorsement slot");
- }
+ if (results["status"].toString().compare("Endorsed") == 0) {
+ QMessageBox::information(this, tr("Thank you!"), tr("Thank you for your endorsement!"));
+ } else if (results["status"].toString().compare("Abstained") == 0) {
+ QMessageBox::information(this, tr("Okay."), tr("This mod will not be endorsed and will no longer ask you to endorse."));
+ }
+ ui->actionEndorseMO->setVisible(false);
+ if (!disconnect(sender(), SIGNAL(nxmEndorsementToggled(QString, int, QVariant, QVariant, int)),
+ this, SLOT(nxmEndorsementToggled(QString, int, QVariant, QVariant, int)))) {
+ qCritical("failed to disconnect endorsement slot");
}
}