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

New commits:
commit 22ccb4cb8b99cc6766282256939d3f79a0c56109
Author: Samuel Mehrbrodt <[email protected]>
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 <[email protected]>

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()
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to