mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Update hidden state correctly
Summary: When renaming a file from '.hidden' to 'not_hidden', the file would still be displayed like a hidden file with a semi-transparent icon and a grey text. BUG: 399599 Reviewers: #dolphin, elvisangelaccio Reviewed By: elvisangelaccio Subscribers: elvisangelaccio, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D16115
This commit is contained in:
parent
e2f93a2829
commit
200e0d1f07
|
@ -1550,8 +1550,8 @@ QHash<QByteArray, QVariant> KFileItemModel::retrieveData(const KFileItem& item,
|
|||
data.insert(sharedValue("isLink"), true);
|
||||
}
|
||||
|
||||
if (m_requestRole[IsHiddenRole] && item.isHidden()) {
|
||||
data.insert(sharedValue("isHidden"), true);
|
||||
if (m_requestRole[IsHiddenRole]) {
|
||||
data.insert(sharedValue("isHidden"), item.isHidden());
|
||||
}
|
||||
|
||||
if (m_requestRole[NameRole]) {
|
||||
|
|
Loading…
Reference in a new issue