[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - sfx2/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Jan 9 23:33:33 UTC 2019
sfx2/source/doc/guisaveas.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 9f00473b9c0352d95ab0f9e6cafb6d24a64fdb65
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jan 9 10:33:24 2019 +0000
Commit: Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Thu Jan 10 00:33:12 2019 +0100
Related: tdf#122308 missing parent for losing signature warning dialog
Change-Id: I3132550cc5549b61d13cd420876cf007bc80d39b
Reviewed-on: https://gerrit.libreoffice.org/66008
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index c9692ca90d8c..fa2a1149e7ad 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -1377,7 +1377,8 @@ bool SfxStoringHelper::GUIStoreModel( const uno::Reference< frame::XModel >& xMo
|| SignatureState::NOTVALIDATED == nDocumentSignatureState
|| SignatureState::PARTIAL_OK == nDocumentSignatureState)
{
- std::unique_ptr<weld::MessageDialog> xMessageBox(Application::CreateMessageDialog(nullptr,
+ vcl::Window* pWin = SfxStoringHelper::GetModelWindow( xModel );
+ std::unique_ptr<weld::MessageDialog> xMessageBox(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr,
VclMessageType::Question, VclButtonsType::YesNo, SfxResId(RID_SVXSTR_XMLSEC_QUERY_LOSINGSIGNATURE)));
if (xMessageBox->run() != RET_YES)
{
More information about the Libreoffice-commits
mailing list