diff options
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 61d0e5bb..9ca7e534 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2551,10 +2551,14 @@ void MainWindow::modInstalled(const QString &modName) QModelIndex qIndex = m_OrganizerCore.modList()->index(index, 0); if (m_ModListSortProxy->sourceModel() == m_ModListByPriorityProxy) { + m_ModListByPriorityProxy->refresh(); qIndex = m_ModListByPriorityProxy->mapFromSource(qIndex); ui->modList->expand(m_ModListSortProxy->mapFromSource(qIndex)); } + + ui->modList->setCurrentIndex(m_ModListSortProxy->mapFromSource(qIndex)); ui->modList->scrollTo(m_ModListSortProxy->mapFromSource(qIndex)); + ui->modList->setFocus(Qt::OtherFocusReason); // force an update to happen std::multimap<QString, int> IDs; |
