summaryrefslogtreecommitdiff
path: root/src/modlistview.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-10 20:08:48 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-10 20:08:48 +0100
commita952f51ef75420426e8ed65e8f78d990c10770b0 (patch)
treece564e0d8c2c5f8bea93cc06cabc46225df3e4ea /src/modlistview.cpp
parent8115335c55c229b8da741dfb075e240334d2f0ab (diff)
Change 'Create empty mod' depending on the currently selected mod.
Diffstat (limited to 'src/modlistview.cpp')
-rw-r--r--src/modlistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modlistview.cpp b/src/modlistview.cpp
index 2fde97f6..5e3e6b58 100644
--- a/src/modlistview.cpp
+++ b/src/modlistview.cpp
@@ -396,7 +396,7 @@ void ModListView::scrollToAndSelect(const QModelIndex& index)
scrollTo(index);
setCurrentIndex(index);
selectionModel()->select(index, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
- QTimer::singleShot(0, [=] { setFocus(); });
+ QTimer::singleShot(50, [=] { setFocus(); });
}
void ModListView::refreshExpandedItems()