# Data module filter behavior

**URL:** <https://discourse.slicer.org/t/data-module-filter-behavior/10314>\
**Category:** Development\
**Created:** [February 17, 2020, 6:05pm UTC](https://discourse.slicer.org/t/data-module-filter-behavior/10314 "2020-02-17T18:05:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![giovform](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/giovform/32/4687_2.png) [@giovform](https://discourse.slicer.org/u/giovform)\
**Post date:** [February 17, 2020, 6:05pm UTC](https://discourse.slicer.org/t/data-module-filter-behavior/10314/1 "2020-02-17T18:05:53Z")

</div>

Hi, I have a directory structure within the data module, and I noticed if I write in the filter box a string that doesn’t match any names, it collapses all the directories, and I have to open them all again. If there is a match, the collapse doesn’t happen. Is this intentional?

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [February 18, 2020, 2:42pm UTC](https://discourse.slicer.org/t/data-module-filter-behavior/10314/2 "2020-02-18T14:42:17Z")

</div>

This does not sound intentional. I find it strange that if there is a match it does not collapse, but it does otherwise. This suggests to me that the problem is in Qt’s sort filter proxy model, but it would need to be investigated.
