[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - sfx2/source

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Thu Jun 28 12:05:04 UTC 2018


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

New commits:
commit 521d8ff0e64d59c88fc44ad376c96c1d019a29f1
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date:   Tue Jun 26 15:57:42 2018 +0200

    tdf#117900 Reload document after signing signature line
    
    So that the graphic reflects the new "signed" state
    
    Change-Id: Ic943581c4dfff53fbf9fbd5f1398c98842497a25
    Reviewed-on: https://gerrit.libreoffice.org/56477
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    (cherry picked from commit 22ccb4cb8b99cc6766282256939d3f79a0c56109)
    Reviewed-on: https://gerrit.libreoffice.org/56511
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index ea9103c3804e..0be2858aad5b 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -1579,6 +1579,12 @@ void SfxObjectShell::SignSignatureLine(weld::Window* pDialogParent,
         false, HasValidSignatures(), aSignatureLineId, xCert, xValidGraphic, xInvalidGraphic, aComment);
 
     AfterSigning(bSignSuccess, false);
+
+    // Reload the document to get the updated graphic
+    // FIXME: Update just the signature line graphic instead of reloading the document
+    SfxViewFrame *pFrame = GetFrame();
+    if (pFrame)
+        pFrame->GetDispatcher()->Execute(SID_RELOAD);
 }
 
 SignatureState SfxObjectShell::GetScriptingSignatureState()


More information about the Libreoffice-commits mailing list