summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-12-02 16:10:06 +0100
committerSerge Krot (CIB) <Serge.Krot@cib.de>2019-12-02 20:54:20 +0100
commitb9930d0d05db39a8466b18dccf626bc3d8ae5c4e (patch)
treeb991a7b5eae55c8cfa5e2e0a40396e699e140435 /sfx2
parent5073c6d8d7ed199388349af133c2febb2dd1196f (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>
Diffstat (limited to 'sfx2')
-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 78f498143a57..126a09e5ecad 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -686,7 +686,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;
}