sfx2/source/doc/QuerySaveDocument.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e7af16b2a6d097448a292cf19f04edcda82adf3a Author: Heiko Tietze <tietze.he...@gmail.com> AuthorDate: Tue Feb 15 15:12:32 2022 +0100 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Wed Feb 16 12:15:29 2022 +0100 Resolves tdf#143578 - Environment variable SAL_NO_QUERYSAVE to not show the dialog on changes Candy for the QA team Change-Id: I00094872e0c2e6113a7136fa5fd7fd5cb91ba3ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129967 Tested-by: Heiko Tietze <heiko.tie...@documentfoundation.org> Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> diff --git a/sfx2/source/doc/QuerySaveDocument.cxx b/sfx2/source/doc/QuerySaveDocument.cxx index fd503816b24d..4abc612dcf90 100644 --- a/sfx2/source/doc/QuerySaveDocument.cxx +++ b/sfx2/source/doc/QuerySaveDocument.cxx @@ -23,7 +23,7 @@ short ExecuteQuerySaveDocument(weld::Widget* _pParent, std::u16string_view _rTitle) { - if (Application::IsHeadlessModeEnabled()) + if (Application::IsHeadlessModeEnabled() || getenv("SAL_NO_QUERYSAVE")) { // don't block Desktop::terminate() if there's no user to ask return RET_NO;