replaced currentTextChanged with currentIndexChanged

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2024-08-16 14:34:28 +03:00
parent d6a825dd47
commit 6de026bfcf
8 changed files with 19 additions and 24 deletions

View File

@ -321,14 +321,9 @@ void ResourcePage::onSelectionChanged(QModelIndex curr, [[maybe_unused]] QModelI
updateUi();
}
void ResourcePage::onVersionSelectionChanged(QString versionData)
void ResourcePage::onVersionSelectionChanged(int index)
{
if (versionData.isNull() || versionData.isEmpty()) {
m_selected_version_index = -1;
return;
}
m_selected_version_index = m_ui->versionSelectionBox->currentData().toInt();
m_selected_version_index = index;
updateSelectionButton();
}