diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2022-02-15 15:12:32 +0100 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2022-02-16 12:15:29 +0100 |
commit | e7af16b2a6d097448a292cf19f04edcda82adf3a (patch) | |
tree | ca8d7583271fde9c6bae82e65b0036e02dd702b4 /sfx2/source/doc | |
parent | e620fc11709787a7075b281a26c5da3acfc27eb8 (diff) |
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.tietze@documentfoundation.org>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/QuerySaveDocument.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |