┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemmodelbase.cpp
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2011-08-15 13:05:53 +0200
committerFrank Reininghaus <[email protected]>2011-08-15 13:05:53 +0200
commitdd71994b6cea7730c126f0b68351a96a0c624634 (patch)
tree8d70500b21572c5f8d6dc9f20926cfe1201096d0 /src/kitemviews/kitemmodelbase.cpp
parentc12f0f8c61d7ec269be689a42836fe4d67a96253 (diff)
Fix for KFileItemModel::expansionLevelsCompare
Before this commit, expanding and collapsing folders in the details view would lead to strange results in a folder with the items "a", "a/a/", "a/a/1", "a/a-1/", and "a/a-1/1". The problem was that the comparison between "a/a/1" and "a/a-1/1" went wrong: the first character in which the paths differ is a "/" in one of the items, such that the code that reduces this 'index' in KFileItemModel::expansionLevelsCompare in order to find the 'common path' did nothing because it checked that only *one* of the two items does not have an "/" at the position 'index'.
Diffstat (limited to 'src/kitemviews/kitemmodelbase.cpp')
0 files changed, 0 insertions, 0 deletions