diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-10-26 18:12:33 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-10-26 18:21:25 +0200 |
commit | 1b4851a941cbafb7bf7a45feee7149cefa7e0acb (patch) | |
tree | 6626a47c9d2f2b4a37302b0e036ab1ffc5033f3f /application/groupview | |
parent | d66fdcd4cc6913508d2987c14cd9fc4d6760b8a5 (diff) | |
download | MultiMC-1b4851a941cbafb7bf7a45feee7149cefa7e0acb.tar MultiMC-1b4851a941cbafb7bf7a45feee7149cefa7e0acb.tar.gz MultiMC-1b4851a941cbafb7bf7a45feee7149cefa7e0acb.tar.lz MultiMC-1b4851a941cbafb7bf7a45feee7149cefa7e0acb.tar.xz MultiMC-1b4851a941cbafb7bf7a45feee7149cefa7e0acb.zip |
NOISSUE use QtConcurrent to run FS operations in worker threads
Not all operations - only the ones that aren't in error handling.
The API for QFuture is too nasty to do much more in a sensible way.
Diffstat (limited to 'application/groupview')
-rw-r--r-- | application/groupview/GroupView.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/application/groupview/GroupView.cpp b/application/groupview/GroupView.cpp index aa85bec7..5a380318 100644 --- a/application/groupview/GroupView.cpp +++ b/application/groupview/GroupView.cpp @@ -641,6 +641,8 @@ QRect GroupView::geometryRect(const QModelIndex &index) const QModelIndex GroupView::indexAt(const QPoint &point) const { + const_cast<GroupView*>(this)->executeDelayedItemsLayout(); + for (int i = 0; i < model()->rowCount(); ++i) { QModelIndex index = model()->index(i, 0); |