diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-06-26 15:57:42 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-06-27 07:15:11 +0200 |
commit | 22ccb4cb8b99cc6766282256939d3f79a0c56109 (patch) | |
tree | 732931cc95b1422fc66d073bc04f80402530444e | |
parent | 79e434948d65dd9eba150bc986e968bcb3754631 (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>
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 6 |
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() |