]> cloud.milkyroute.net Git - dolphin.git/commit
Handle folder names containing spaces correctly in the Folders Panel
authorFrank Reininghaus <frank78ac@googlemail.com>
Wed, 25 Jan 2012 20:30:57 +0000 (21:30 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Wed, 25 Jan 2012 20:32:49 +0000 (21:32 +0100)
commit2a812eaf7d733699c3d5e61497ca34ac2c2e2840
tree0dd68bd2b14ee7891b540fd57baab49ce51fc43f
parent3a84f2223b71dba0c6a2934b8c7cf443306f5a3b
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
src/kitemviews/kfileitemmodel.cpp