sfx2/source/view/viewsh.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e4f77638cd44cb1d59a8ce670b3c23462d147839
Author:     Vasily Melenchuk <[email protected]>
AuthorDate: Tue Jan 18 12:50:01 2022 +0300
Commit:     Samuel Mehrbrodt <[email protected]>
CommitDate: Thu Jan 20 17:14:10 2022 +0100

    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 <[email protected]>
    Reviewed-by: Vasily Melenchuk <[email protected]>
    (cherry picked from commit f4559274154324e132f82ba9c21676326f6db7e5)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128664
    Tested-by: Samuel Mehrbrodt <[email protected]>

diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 8a199623fa58..80cd8a122d07 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() && nSID != SID_MAIL_SENDDOC)
+                if (isExportLocked())
                     rSet.DisableItem(nSID);
                 break;
             }

Reply via email to