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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user