Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
(cherry picked from commit b593ff09e9c4b5fa30ca082eea4cd69f12a286e5)
This commit is contained in:
Trial97 2024-10-27 03:05:56 +02:00 committed by github-actions[bot]
parent 1d9c97803a
commit 1e696328bb

View File

@ -484,11 +484,13 @@ void ResourcePage::openProject(QVariant projectID)
connect(cancelBtn, &QPushButton::clicked, m_parentDialog, &ResourceDownloadDialog::reject); connect(cancelBtn, &QPushButton::clicked, m_parentDialog, &ResourceDownloadDialog::reject);
m_ui->gridLayout_4->addWidget(buttonBox, 1, 2); m_ui->gridLayout_4->addWidget(buttonBox, 1, 2);
auto jump = [this, okBtn] { connect(m_ui->versionSelectionBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
[this, okBtn] { okBtn->setEnabled(m_ui->versionSelectionBox->currentData().toInt() >= 0); });
auto jump = [this] {
for (int row = 0; row < m_model->rowCount({}); row++) { for (int row = 0; row < m_model->rowCount({}); row++) {
const QModelIndex index = m_model->index(row); const QModelIndex index = m_model->index(row);
m_ui->packView->setCurrentIndex(index); m_ui->packView->setCurrentIndex(index);
okBtn->setEnabled(true);
return; return;
} }
m_ui->packDescription->setText(tr("The resource was not found")); m_ui->packDescription->setText(tr("The resource was not found"));