]> 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:35:00 +0000 (21:35 +0100)
commitc7d6f43a947c791c05726f6bf699fe0caf328d25
treeb3b549395e3a16f723ec256203e96b3c03941f74
parent14d5a32475ef646e51f6750a80f216020b648039
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.

CCBUG: 291781
FIXED-IN: 4.8.1
(cherry picked from commit 80d9bfec580bf01b0ee584fc4bb46e3d59a0ba7c)
src/kitemviews/kfileitemmodel.cpp