1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Merge pull request #5144 from IvanSavenko/selection_fix

Fix crash on attempting to install mod when nothing is selected
This commit is contained in:
Ivan Savenko
2024-12-25 13:42:28 +02:00
committed by GitHub

View File

@@ -932,7 +932,7 @@ void CModListView::on_pushButton_clicked()
void CModListView::modelReset()
{
selectMod(filterModel->rowCount() > 0 ? filterModel->index(0, 0) : QModelIndex());
ui->allModsView->setCurrentIndex(filterModel->rowCount() > 0 ? filterModel->index(0, 0) : QModelIndex());
}
void CModListView::checkManagerErrors()