From 1b4851a941cbafb7bf7a45feee7149cefa7e0acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 26 Oct 2016 18:12:33 +0200 Subject: 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. --- application/groupview/GroupView.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'application') 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(this)->executeDelayedItemsLayout(); + for (int i = 0; i < model()->rowCount(); ++i) { QModelIndex index = model()->index(i, 0); -- cgit v1.2.3