# Raw Image Guess extension wrong file dialog

**URL:** <https://discourse.slicer.org/t/raw-image-guess-extension-wrong-file-dialog/14462>\
**Category:** Development\
**Tags:** bug\
**Created:** [November 6, 2020, 4:55pm UTC](https://discourse.slicer.org/t/raw-image-guess-extension-wrong-file-dialog/14462 "2020-11-06T16:55:56Z")\
**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:** [November 6, 2020, 4:55pm UTC](https://discourse.slicer.org/t/raw-image-guess-extension-wrong-file-dialog/14462/1 "2020-11-06T16:55:56Z")

</div>

Hi, I am using the latest stable 3D Slicer (4.11.20200930), and found a bug in an extension named “Raw Image Guess”. The input file selector dialog opens as a “Save file” dialog, instead of a “Open file” one.

A possible fix is to add:

```
self.ui.inputFileSelector.filters = ctk.ctkPathLineEdit.Files

```

I believe this bug was introduced recently, since this fix was also used in a module of my own, and appeared after updating to the newest stable 3D Slicer version.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 6, 2020, 5:15pm UTC](https://discourse.slicer.org/t/raw-image-guess-extension-wrong-file-dialog/14462/2 "2020-11-06T17:15:43Z")

</div>

Thanks for reporting. This is a regression in Slicer-4.11.20209030 that was fixed in [https://github.com/Slicer/Slicer/commit/9aa9ed8b8aa06704ece1f0caa50d46cd7825ea4a](https://github.com/Slicer/Slicer/commit/9aa9ed8b8aa06704ece1f0caa50d46cd7825ea4a).

Unfortunately, Slicer Preview Release is not functional yet ([No images shown in slice viewers in latest preview release (Slicer-4.13.0)](https://discourse.slicer.org/t/no-images-shown-in-slice-viewers-in-latest-preview-release-slicer-4-13-0/13899/4)).

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [November 6, 2020, 6:10pm UTC](https://discourse.slicer.org/t/raw-image-guess-extension-wrong-file-dialog/14462/3 "2020-11-06T18:10:10Z")

</div>

@lassoan since this impacts more then just RawImageGuess, but other modules that use same dialog box, is possible to patch the current stable?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 6, 2020, 6:11pm UTC](https://discourse.slicer.org/t/raw-image-guess-extension-wrong-file-dialog/14462/4 "2020-11-06T18:11:59Z")

</div>

Yes, we should either patch Slicer-4.11, build Slicer-4.13 with VTK8, or fix VTK9 to work with Slicer-4.13 - see discussion [here](https://discourse.slicer.org/t/no-images-shown-in-slice-viewers-in-latest-preview-release-slicer-4-13-0/13899/7).
