From: Zakhar Afonin Date: Sun, 16 Jun 2024 21:42:46 +0000 (+0300) Subject: Fixed crash on text/text sorting/grouping. Missed a collatorLock :/ X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/187933a7a6acb7f50ab397f5170308b8aab76bbc Fixed crash on text/text sorting/grouping. Missed a collatorLock :/ --- diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index a2e7c0075..afe8f71c4 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -2441,6 +2441,8 @@ KFileItemModel::ItemGroupInfo KFileItemModel::nameRoleGroup(const ItemData *item const QString name = itemData->item.text(); + QMutexLocker collatorLock(s_collatorMutex()); + // Use the first character of the name as group indication firstChar = name.at(0).toUpper();