Kaydet (Commit) 22ccb4cb authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

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: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst 79e43494
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment