# Confirm before exit

**URL:** <https://resource.dopus.com/t/confirm-before-exit/34592>\
**Category:** Help & Support\
**Created:** [February 8, 2020, 2:34pm UTC](https://resource.dopus.com/t/confirm-before-exit/34592 "2020-02-08T14:34:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpopnum](https://resource.dopus.com/letter_avatar_proxy/v4/letter/l/ba9def/32.png) [@lpopnum](https://resource.dopus.com/u/lpopnum)\
**Post date:** [February 8, 2020, 2:34pm UTC](https://resource.dopus.com/t/confirm-before-exit/34592/1 "2020-02-08T14:34:38Z")

</div>

Is there a way to make dopus confim before exit when you click on the x in upper right corner of window? If not can this option be added?

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [February 8, 2020, 5:23pm UTC](https://resource.dopus.com/t/confirm-before-exit/34592/2 "2020-02-08T17:23:59Z")

</div>

It can be done, but the best solution depends on why you want the confirmation. What is it you're worried about losing by closing the window?

e.g. Closing the window without noticing there are multiple tabs open? You can make the close button only close the active tab if that is the problem.

---

<div class="post-metadata">

**Author:** ![lpopnum](https://resource.dopus.com/letter_avatar_proxy/v4/letter/l/ba9def/32.png) [@lpopnum](https://resource.dopus.com/u/lpopnum)\
**Post date:** [February 9, 2020, 7:38am UTC](https://resource.dopus.com/t/confirm-before-exit/34592/3 "2020-02-09T07:38:16Z")

</div>

The problem is having to open dopus again. Sometimes i accidentally close the dopus window because quickly closing other program on top of it, then i have to open up dopus again. It would be better if popup box asked confirming exit to avoid accidental closing.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [February 9, 2020, 4:08pm UTC](https://resource.dopus.com/t/confirm-before-exit/34592/4 "2020-02-09T16:08:11Z")

</div>

Makes sense. Here's a solution:

> [@Confirm before closing lister window](https://resource.dopus.com/t/confirm-before-closing-lister-window/34600):
>
> Overview This simple script adds a confirmation dialog when you click the lister window's close button, allowing you to confirm or cancel the closure. [image] You can hold a qualifier key (shift, alt, ctrl) while clicking the close button to suppre…

---

<div class="post-metadata">

**Author:** ![lpopnum](https://resource.dopus.com/letter_avatar_proxy/v4/letter/l/ba9def/32.png) [@lpopnum](https://resource.dopus.com/u/lpopnum)\
**Post date:** [February 10, 2020, 6:18am UTC](https://resource.dopus.com/t/confirm-before-exit/34592/5 "2020-02-10T06:18:57Z")

</div>

That works great. Thank you.
