# Having all files checked by default at the Save Scene dialog

**URL:** <https://discourse.slicer.org/t/having-all-files-checked-by-default-at-the-save-scene-dialog/18329>\
**Category:** Development\
**Created:** [June 24, 2021, 5:26pm UTC](https://discourse.slicer.org/t/having-all-files-checked-by-default-at-the-save-scene-dialog/18329 "2021-06-24T17:26:50Z")\
**Posts on this page:** 4\
**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:** [June 24, 2021, 5:26pm UTC](https://discourse.slicer.org/t/having-all-files-checked-by-default-at-the-save-scene-dialog/18329/1 "2021-06-24T17:26:50Z")

</div>

Is there a way to set the select files checked by default at the Save Scene dialog? I tried this code bellow, but no sucess:

```auto
saveDataDialog.children()[6].model().setHeaderData(0, qt.Qt.Horizontal, qt.Qt.Checked, qt.Qt.CheckStateRole)

```

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/4/f485a111292faeecb0b9b99b8cb0a541487a5ed7.png)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 24, 2021, 5:32pm UTC](https://discourse.slicer.org/t/having-all-files-checked-by-default-at-the-save-scene-dialog/18329/2 "2021-06-24T17:32:39Z")

</div>

Better to use [this method](https://apidocs.slicer.org/master/classvtkMRMLStorableNode.html#ac92434ba2f9859a6f72bec0be170ad70) to mark the nodes so that the widget will select them for saving.

---

<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:** [June 24, 2021, 6:19pm UTC](https://discourse.slicer.org/t/having-all-files-checked-by-default-at-the-save-scene-dialog/18329/3 "2021-06-24T18:19:59Z")

</div>

But if I always wanted to have this option checked, regardless, because it has caused some confusion with users altering the directory thinking it would modify for all the project files.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 24, 2021, 7:50pm UTC](https://discourse.slicer.org/t/having-all-files-checked-by-default-at-the-save-scene-dialog/18329/4 "2021-06-24T19:50:41Z")

</div>

I see. If you always want to save everything maybe MRB is a better option (click the package icon). Or if you are doing a bit of customizing anyway and don’t want the MRB you could add a save dialog with just a single directory browser.
