# How to disable the Add Data Dialog when dragging and dropping an .mrml file into Slicer?

**URL:** <https://discourse.slicer.org/t/how-to-disable-the-add-data-dialog-when-dragging-and-dropping-an-mrml-file-into-slicer/10131>\
**Category:** Support\
**Created:** [February 5, 2020, 9:34pm UTC](https://discourse.slicer.org/t/how-to-disable-the-add-data-dialog-when-dragging-and-dropping-an-mrml-file-into-slicer/10131 "2020-02-05T21:34:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_C](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vincent_c/32/5759_2.png) [@Vincent\_C](https://discourse.slicer.org/u/Vincent_C)\
**Post date:** [February 5, 2020, 9:34pm UTC](https://discourse.slicer.org/t/how-to-disable-the-add-data-dialog-when-dragging-and-dropping-an-mrml-file-into-slicer/10131/1 "2020-02-05T21:34:31Z")

</div>

Hi there,

How can I disable the add data dialog window when I drag and drop .mrml files into Slicer? Is there a command I can put into slicerrc.py to prevent the dialog pop-up window from appearing everytime and drag and drop? ![Adddatadialog](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/5/559c5ee6fd223198d473346e3a3d569adcfa966d.png)

Thanks

---

<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:** [February 5, 2020, 9:57pm UTC](https://discourse.slicer.org/t/how-to-disable-the-add-data-dialog-when-dragging-and-dropping-an-mrml-file-into-slicer/10131/2 "2020-02-05T21:57:52Z")

</div>

@Sam_Horvath just mentioned something about needing to do this in her own custom app - maybe she can comment, but I don’t think it was something one could override in python but I could be wrong on that.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [February 6, 2020, 3:06am UTC](https://discourse.slicer.org/t/how-to-disable-the-add-data-dialog-when-dragging-and-dropping-an-mrml-file-into-slicer/10131/3 "2020-02-06T03:06:59Z")

</div>

Recently I did some overriding of the drop event in Python. See this post [Add Drag and drop import to slicelet?](https://discourse.slicer.org/t/add-drag-and-drop-import-to-slicelet/9382/4)

---

<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:** [February 6, 2020, 4:19am UTC](https://discourse.slicer.org/t/how-to-disable-the-add-data-dialog-when-dragging-and-dropping-an-mrml-file-into-slicer/10131/4 "2020-02-06T04:19:42Z")

</div>

This is very useful, thanks a lot! I’ve used it now to make DICOM loading simpler: if you drag-and-drop files or folders while DICOM module is active then they will be always loaded as DICOM (the user does not have to choose) - see [https://github.com/Slicer/Slicer/pull/1316](https://github.com/Slicer/Slicer/pull/1316)
