]> cloud.milkyroute.net Git - dolphin.git/commit
Only use parallel sorting when sorting by name
authorFrank Reininghaus <frank78ac@googlemail.com>
Fri, 11 Jan 2013 15:57:43 +0000 (16:57 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Fri, 11 Jan 2013 15:57:43 +0000 (16:57 +0100)
commit2a7e8b41d31f6395f3ca3803ed82a9a8094dda22
treebc59236d2cc38128f5b56515574d292652cd1c35
parentd7373195f0a4bc9ec22332ad5260aa22e556d2d5
Only use parallel sorting when sorting by name

The reentrant natural comparison of strings is the only really
expensive operation. Other comparison functions are much cheaper and
might not be reentrant at all. Therefore, we disable parallel sorting
when not sorting by name to prevent crashes and other unpleasant
behaviour.

BUG: 312679
FIXED-IN: 4.10
REVIEW: 108309
src/kitemviews/private/kfileitemmodelsortalgorithm.cpp