summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-29 14:24:33 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:16 +0100
commitde87a105b0cbcc73440a2613af6446d0e8819fb6 (patch)
treecf034331ec4d716916c9b567dc174e868fef19ef /src/mainwindow.cpp
parent4ee3d2848e0fc2f32543f7d2aeaed22d77d937bd (diff)
Fix indentation and drop indicator.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 3ab61f98..3fdaa6d8 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -558,6 +558,8 @@ void MainWindow::updateModListByPriorityProxy()
void MainWindow::setupModList()
{
+ ui->modList->setIndentation(0);
+
m_ModListByPriorityProxy = new ModListByPriorityProxy(m_OrganizerCore.currentProfile(), &m_OrganizerCore);
connect(ui->modList, SIGNAL(expanded(QModelIndex)), m_ModListByPriorityProxy, SLOT(expanded(QModelIndex)));
connect(ui->modList, SIGNAL(collapsed(QModelIndex)), m_ModListByPriorityProxy, SLOT(collapsed(QModelIndex)));
@@ -2521,15 +2523,18 @@ void MainWindow::modInstalled(const QString &modName)
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);
+ qIndex = m_ModListSortProxy->mapFromSource(qIndex);
// force an update to happen
std::multimap<QString, int> IDs;
ModInfo::Ptr info = ModInfo::getByIndex(index);
IDs.insert(std::make_pair<QString, int>(info->gameName(), info->nexusId()));
modUpdateCheck(IDs);
+
+ ui->modList->setFocus(Qt::OtherFocusReason);
+ ui->modList->scrollTo(qIndex);
+ // ui->modList->setCurrentIndex(qIndex);
+ ui->modList->selectionModel()->select(qIndex, QItemSelectionModel::Select | QItemSelectionModel::Rows);
}
void MainWindow::showMessage(const QString &message)