summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Melenchuk <vasily.melenchuk@cib.de>2022-01-18 12:50:01 +0300
committerVasily Melenchuk <vasily.melenchuk@cib.de>2022-01-20 13:44:50 +0100
commit35a468ebe12d46a4092d9b70399736ae4ad2f476 (patch)
treefbbc206a34796420bd00d49e7884d4ad88257af3
parentsw tests: audit uses of loadAndSave() (diff)
downloadcore-35a468ebe12d46a4092d9b70399736ae4ad2f476.tar.gz
core-35a468ebe12d46a4092d9b70399736ae4ad2f476.zip
tdf#140019: Revert "Don't disable "Send doc via email" ..."
Locked export should also disable ability to send document. This reverts commit b9930d0d05db39a8466b18dccf626bc3d8ae5c4e. Change-Id: I3b7b423c0e17a59872065ec7ceadbaf1cda45ccc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128550 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> Reviewed-by: Vasily Melenchuk <vasily.melenchuk@cib.de> (cherry picked from commit f4559274154324e132f82ba9c21676326f6db7e5) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128546
-rw-r--r--sfx2/source/view/viewsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 75826a28d128..f4ec9b29b0a1 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -673,7 +673,7 @@ void SfxViewShell::GetState_Impl( SfxItemSet &rSet )
#if HAVE_FEATURE_MACOSX_SANDBOX
rSet.DisableItem(nSID);
#endif
- if (pSh && pSh->isExportLocked() && nSID != SID_MAIL_SENDDOC)
+ if (pSh && pSh->isExportLocked())
rSet.DisableItem(nSID);
break;
}