Handle folder names containing spaces correctly in the Folders Panel
author Frank Reininghaus
()
committer Frank Reininghaus
()
commit 80d9bfec580bf01b0ee584fc4bb46e3d59a0ba7c
tree 30525b798049601301620dd396dfe0413d9fe44b
parent 7dfe3632f52d30f79f1c21c9acbaf68c05d63006
Handle folder names containing spaces correctly in the Folders Panel

The problem was that KFileItemModel::setExpanded() used KUrl::url()
to determine the names of the subfolders. This method encodes special
characters, such that comparing the folder names with the unencoded URLs
stored in the model fails.
Using KUrl::path(), which does not encode special characters, fixes the
problem.

BUG: 291781
FIXED-IN: 4.8.1
dolphin/src/kitemviews/kfileitemmodel.cpp