fix: don't double add mods in mod downloader/updater

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-06-10 16:40:39 -03:00
parent 2d10c246a8
commit 1709b47bb7
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469
2 changed files with 2 additions and 2 deletions

View File

@ -305,7 +305,7 @@ auto ModUpdateDialog::getTasks() -> const std::list<ModDownloadTask*>
auto* item = ui->modTreeWidget->topLevelItem(0);
for (int i = 0; item != nullptr; ++i) {
for (int i = 1; item != nullptr; ++i) {
if (item->checkState(0) == Qt::CheckState::Checked) {
list.push_back(m_tasks.find(item->text(0)).value());
}

View File

@ -40,7 +40,7 @@ auto ReviewMessageBox::deselectedMods() -> QStringList
auto* item = ui->modTreeWidget->topLevelItem(0);
for (int i = 0; item != nullptr; ++i) {
for (int i = 1; item != nullptr; ++i) {
if (item->checkState(0) == Qt::CheckState::Unchecked) {
list.append(item->text(0));
}