summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-06-26 15:57:42 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-06-28 14:04:34 +0200
commit521d8ff0e64d59c88fc44ad376c96c1d019a29f1 (patch)
tree139b051d8757220bd553ff130cea16b24e247a98
parentb879a01a5ef568065f113fb7da19be0720a1a478 (diff)
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@cib.de> (cherry picked from commit 22ccb4cb8b99cc6766282256939d3f79a0c56109) Reviewed-on: https://gerrit.libreoffice.org/56511 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--sfx2/source/doc/objserv.cxx6
1 files changed, 6 insertions, 0 deletions
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()