]> cloud.milkyroute.net Git - dolphin.git/commit
KFileItemModelRolesUpdater: only update the size for changed folders
authorFrank Reininghaus <frank78ac@googlemail.com>
Wed, 22 May 2013 16:06:54 +0000 (18:06 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Wed, 22 May 2013 16:09:42 +0000 (18:09 +0200)
commite66c3221ce2534c3317489c0d666da20ff14de8f
tree458619b396d685e4a92072be6a754b03b61faa55
parentfffbb5b583ffb5af2a7ff6b17104c23bf3b31727
KFileItemModelRolesUpdater: only update the size for changed folders

When using inotify, we also receive signals for modified files, even if
we only ask KDirWatch to watch the directory containing them. In that
case, we must not set the size to -1 (which means "unknown number of
items" for folders) temporarily, or we end up with an apparent file size
of 2^64 - 1 bytes.

BUG: 309740
FIXED-IN: 4.10.4
REVIEW: 110428
src/kitemviews/kfileitemmodelrolesupdater.cpp