Fix crashing on starting and quitting

Authored by sandsmark on Apr 7 2020, 3:14 PM.

Description

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

Details

Committed
sandsmarkApr 12 2020, 10:15 AM
Differential Revision
D28659: Fix crashing on starting and quitting
Parents
R318:d868568d81c7: Revert "Port deprecated signal (qt5.15)"
Branches
Unknown
Tags
Unknown