]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fixed crash on text/text sorting/grouping. Missed a collatorLock :/
authorZakhar Afonin <aza22u419@student.bmstu.ru>
Sun, 16 Jun 2024 21:42:46 +0000 (00:42 +0300)
committerZakhar Afonin <aza22u419@student.bmstu.ru>
Sun, 16 Jun 2024 21:42:46 +0000 (00:42 +0300)
src/kitemviews/kfileitemmodel.cpp

index a2e7c00758a868cea4db6334dacf8d1c0dce97a1..afe8f71c4e47f00d44e5172ca769adc115bb8042 100644 (file)
@@ -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();