# FileBasedDocument::saveIfNeededAndUserAgrees behavior change?

**URL:** <https://forum.juce.com/t/filebaseddocument-saveifneededanduseragrees-behavior-change/68572>\
**Category:** General JUCE discussion\
**Created:** [March 25, 2026, 11:06pm UTC](https://forum.juce.com/t/filebaseddocument-saveifneededanduseragrees-behavior-change/68572 "2026-03-25T23:06:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [March 26, 2026, 8:24pm UTC](https://forum.juce.com/t/filebaseddocument-saveifneededanduseragrees-behavior-change/68572/2 "2026-03-26T20:24:27Z")

</div>

Thanks, this looks like a bug across AlertWindow and FileBasedDocument. It should be fixed by the commit below, although I’d recommend moving to the async functions if possible, as you mentioned.

> <https://github.com/juce-framework/JUCE/commit/04e0d19a84721afd0c6fd8e9452784b9e43a41f2>

---

_[View the full topic](https://forum.juce.com/t/filebaseddocument-saveifneededanduseragrees-behavior-change/68572)._
