Преглед изворни кода

Merge pull request #5144 from IvanSavenko/selection_fix

Fix crash on attempting to install mod when nothing is selected
Ivan Savenko пре 10 месеци
родитељ
комит
d5e8226939
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      launcher/modManager/cmodlistview_moc.cpp

+ 1 - 1
launcher/modManager/cmodlistview_moc.cpp

@@ -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()