summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-12-02 16:10:06 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-12-03 09:12:24 +0100
commit926b39e6c7acbaace8e311dba0a2527ac8c20b09 (patch)
tree7e36a44bbefb5dfe322fb5d1f034818aed6d6c47 /sfx2/source
parent7a22576478efcf9445a572574b905d6dd07b1e74 (diff)
Don't disable "Send doc via email" when LockExport is set
Only sending as other formats should be disabled in this case Change-Id: I985d43ba314a1bda16dab33897d212ad27d3d115 Reviewed-on: https://gerrit.libreoffice.org/84240 Tested-by: Jenkins Reviewed-by: Serge Krot (CIB) <Serge.Krot@cib.de> (cherry picked from commit b9930d0d05db39a8466b18dccf626bc3d8ae5c4e) Reviewed-on: https://gerrit.libreoffice.org/84292 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sfx2/source')
-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 80cd8a122d07..8a199623fa58 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -684,7 +684,7 @@ void SfxViewShell::GetState_Impl( SfxItemSet &rSet )
#if HAVE_FEATURE_MACOSX_SANDBOX
rSet.DisableItem(nSID);
#endif
- if (isExportLocked())
+ if (isExportLocked() && nSID != SID_MAIL_SENDDOC)
rSet.DisableItem(nSID);
break;
}