Finder: Hiding hidden files fails to hide everything
At revision 2b5078f0 .
Upon launching, the state is "hide hidden files".
- Navigate to a directory with multiple hidden directories : $HOME.
- Show hidden files (with any of the 3 methods: shortcut Ctrl-3 or ToolBar button or Context Menu).
- Select a hidden directory item.
- Hide hidden files with any of the 3 methods.
The bug is triggered : this selected directory is not hidden.
Observation: the same bug happens for symlinks if we hide them similarly to hidden files.
Obersvation: adding these lines to dtkWidgetsFinder::onShowHiddenFiles(bool) before the call to QFileSystemModel::setFilter() fixes the problem, but only when selecting an item with the keyboard, not when selecting an item with the mouse.
d->tree->setCurrentIndex(QModelIndex());
d->list->setCurrentIndex(QModelIndex());