sfx2/source/doc/guisaveas.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit d58b2531d3f6d931dce5a6dfeef8926e20868f4d
Author: Caolán McNamara <caol...@redhat.com>
Date:   Fri Sep 1 16:44:49 2017 +0100

    set parent for export dialog same as save dialog
    
    Change-Id: I33f416339693ef95c7a44a72d7c9c8e4b2e9b380
    Reviewed-on: https://gerrit.libreoffice.org/41811
    Tested-by: Jenkins <c...@libreoffice.org>
    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 885c801aef15..6cd7f5e689d9 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -847,7 +847,7 @@ bool ModelData_Impl::OutputFileDialog( sal_Int8 nStoreMode,
     SfxFilterFlags nMust = getMustFlags( nStoreMode );
     SfxFilterFlags nDont = getDontFlags( nStoreMode );
     sfx2::FileDialogHelper::Context eCtxt = 
sfx2::FileDialogHelper::UNKNOWN_CONTEXT;
-
+    vcl::Window* pWin = SfxStoringHelper::GetModelWindow( m_xModel );
     if ( ( nStoreMode & EXPORT_REQUESTED ) && !( nStoreMode & 
WIDEEXPORT_REQUESTED ) )
     {
         if ( ( nStoreMode & PDFEXPORT_REQUESTED ) && 
!aPreselectedFilterPropsHM.empty() )
@@ -855,13 +855,13 @@ bool ModelData_Impl::OutputFileDialog( sal_Int8 
nStoreMode,
             // this is a PDF export
             // the filter options has been shown already
             const OUString aFilterUIName = 
aPreselectedFilterPropsHM.getUnpackedValueOrDefault( "UIName", OUString() );
-            pFileDlg.reset(new sfx2::FileDialogHelper( aDialogMode, 
aDialogFlags, aFilterUIName, "pdf", rStandardDir, rBlackList ));
+            pFileDlg.reset(new sfx2::FileDialogHelper( aDialogMode, 
aDialogFlags, aFilterUIName, "pdf", rStandardDir, rBlackList, pWin ));
             pFileDlg->SetCurrentFilter( aFilterUIName );
         }
         else
         {
             // This is the normal dialog
-            pFileDlg.reset(new sfx2::FileDialogHelper( aDialogMode, 
aDialogFlags, aDocServiceName, nDialog, nMust, nDont, rStandardDir, rBlackList 
));
+            pFileDlg.reset(new sfx2::FileDialogHelper( aDialogMode, 
aDialogFlags, aDocServiceName, nDialog, nMust, nDont, rStandardDir, rBlackList, 
pWin ));
         }
 
         if ( aDocServiceName == "com.sun.star.drawing.DrawingDocument" )
@@ -889,7 +889,6 @@ bool ModelData_Impl::OutputFileDialog( sal_Int8 nStoreMode,
     else
     {
         // This is the normal dialog
-        vcl::Window* pWin = SfxStoringHelper::GetModelWindow( m_xModel );
         pFileDlg.reset(new sfx2::FileDialogHelper( aDialogMode, aDialogFlags, 
aDocServiceName, nDialog,
             nMust, nDont, rStandardDir, rBlackList, pWin ));
         pFileDlg->CreateMatcher( aDocServiceName );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to