| 623 | } |
| 624 | |
| 625 | void VersionPage::preselect(int row) |
| 626 | { |
| 627 | if(row < 0) |
| 628 | { |
| 629 | row = 0; |
| 630 | } |
| 631 | if(row >= m_profile->rowCount(QModelIndex())) |
| 632 | { |
| 633 | row = m_profile->rowCount(QModelIndex()) - 1; |
| 634 | } |
| 635 | if(row < 0) |
| 636 | { |
| 637 | return; |
| 638 | } |
| 639 | auto model_index = m_profile->index(row); |
| 640 | ui->packageView->selectionModel()->select(model_index, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows); |
| 641 | updateButtons(row); |
| 642 | } |
| 643 | |
| 644 | void VersionPage::onGameUpdateError(QString error) |
| 645 | { |
nothing calls this directly
no test coverage detected