]> cloud.milkyroute.net Git - dolphin.git/commit
Fix crashing on starting and quitting
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>
Tue, 7 Apr 2020 15:14:59 +0000 (17:14 +0200)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>
Sun, 12 Apr 2020 10:15:03 +0000 (12:15 +0200)
commit35b4c6d4df1281afd621374e686f19e654ad7bae
tree9fe02c65d102b15f60cec8031e323b3c8c4c16dc
parentd868568d81c74e91c37955876242ac1bed79133a
Fix crashing on starting and quitting

QCollator (especially with Qt 5.14 and ICU 65.1) is very unhappy with
threads.

To avoid having to lock and unlock the mutex everywhere (and ensure it
is unlocked before calling other things that might lock it, etc.), we do
it as locally as possible. Even if for some reason Qt and ICU make
QCollator threadsafe in the future locking here should have minimal
impact.

BUG: 419585

Differential Revision: https://phabricator.kde.org/D28659
src/kitemviews/kfileitemmodel.cpp