replace currentData with itemData on QComboBox::currentIndexChanged slots

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-10-28 12:54:21 +02:00
parent b593ff09e9
commit 0cafac84ac
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
4 changed files with 12 additions and 12 deletions

View file

@ -375,7 +375,7 @@ void ModrinthPage::onVersionSelectionChanged(int index)
selectedVersion = "";
return;
}
selectedVersion = ui->versionSelectionBox->currentData().toString();
selectedVersion = ui->versionSelectionBox->itemData(index).toString();
suggestCurrent();
}