sfx2/source/doc/objserv.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 1904251af5944f8e9c277be1dffe387f85b52626
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Wed Jun 24 10:17:14 2020 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Wed Jun 24 12:53:24 2020 +0200

    sd signature line: support signing multiple times
    
    Reload the document after signing. This way in case the signature line
    is not exported correctly, we notice it immediately. Also the infobar
    state gets reset, allowing a next signature to be added.
    
    Change-Id: Iaeaf4c9aebadbd63b44a0620d345cd0dd0214f30
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96983
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index fcea15d3ee22..c2280edfd34b 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -460,6 +460,15 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq)
                 if (xCertificate.is())
                 {
                     SignDocumentContentUsingCertificate(xCertificate);
+
+                    // Reload to show how the PDF actually looks like after 
signing. This also
+                    // changes "finish signing" on the infobar back to "sign 
document" as a side
+                    // effect.
+                    SfxViewFrame* pFrame = GetFrame();
+                    if (pFrame)
+                    {
+                        pFrame->GetDispatcher()->Execute(SID_RELOAD);
+                    }
                 }
                 else
                 {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to