sfx2/source/doc/guisaveas.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 0aff7edaa4ec4a2aa232bac27f669e42435905b3
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Jan 9 10:33:24 2019 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Jan 9 14:06:28 2019 +0100

    Related: tdf#122308 missing parent for losing signature warning dialog
    
    Change-Id: I3132550cc5549b61d13cd420876cf007bc80d39b
    Reviewed-on: https://gerrit.libreoffice.org/66007
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index ff34b7dcebea..9e0a5649e473 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)
             {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to