"Work around" a bug in Qt 5.14 where Krita crashes on exit
BUG:417465 (cherry picked from commit b26525b369bf6cdf6cd4bb8c39aa4d0c783470cc)