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>
This commit is contained in:
Samuel Mehrbrodt 2019-12-02 16:10:06 +01:00 committed by Serge Krot (CIB)
parent 5073c6d8d7
commit b9930d0d05

View file

@ -686,7 +686,7 @@ void SfxViewShell::GetState_Impl( SfxItemSet &rSet )
#if HAVE_FEATURE_MACOSX_SANDBOX #if HAVE_FEATURE_MACOSX_SANDBOX
rSet.DisableItem(nSID); rSet.DisableItem(nSID);
#endif #endif
if (isExportLocked()) if (isExportLocked() && nSID != SID_MAIL_SENDDOC)
rSet.DisableItem(nSID); rSet.DisableItem(nSID);
break; break;
} }