diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-12-22 14:54:45 +0100 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-12-22 14:54:45 +0100 |
| commit | 127fbda849847cfd854cb86cd8fa2a2216020845 (patch) | |
| tree | c309347a9936388116f499eab515a937509e9659 | |
| parent | d8e988d372e41a8f76f2f9619cc3ab1c3d1cfa5f (diff) | |
Fixed unignreUpdate option from not showing up.
| -rw-r--r-- | src/mainwindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f2f190ff..bb136364 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -4058,14 +4058,14 @@ void MainWindow::on_modList_customContextMenuRequested(const QPoint &pos) menu->addAction(tr("Change versioning scheme"), this, SLOT(changeVersioningScheme()));
}
- if (info->updateAvailable() || info->downgradeAvailable()) {
- if (info->updateIgnored()) {
- menu->addAction(tr("Un-ignore update"), this, SLOT(unignoreUpdate()));
- } else {
- menu->addAction(tr("Ignore update"), this, SLOT(ignoreUpdate()));
+ if (info->updateIgnored()) {
+ menu->addAction(tr("Un-ignore update"), this, SLOT(unignoreUpdate()));
+ }
+ else {
+ if (info->updateAvailable() || info->downgradeAvailable()) {
+ menu->addAction(tr("Ignore update"), this, SLOT(ignoreUpdate()));
}
}
-
menu->addSeparator();
menu->addAction(tr("Enable selected"), this, SLOT(enableSelectedMods_clicked()));
|
