cui/source/dialogs/SignSignatureLineDialog.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit ca2515bab1b25fc7e6a703aca1e501656a963da4
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Jun 21 13:10:40 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Jun 21 16:07:16 2021 +0200

    use FileDialogHelper to set file picker parent
    
    Change-Id: Ibca7a7d275773b816d125c38f87e902de7a5db4d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117583
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/cui/source/dialogs/SignSignatureLineDialog.cxx 
b/cui/source/dialogs/SignSignatureLineDialog.cxx
index 58a4fd317065..286f11501299 100644
--- a/cui/source/dialogs/SignSignatureLineDialog.cxx
+++ b/cui/source/dialogs/SignSignatureLineDialog.cxx
@@ -17,6 +17,7 @@
 
 #include <comphelper/graphicmimetype.hxx>
 #include <comphelper/processfactory.hxx>
+#include <sfx2/filedlghelper.hxx>
 #include <sfx2/objsh.hxx>
 #include <svx/xoutbmp.hxx>
 #include <utility>
@@ -121,8 +122,9 @@ 
SignSignatureLineDialog::SignSignatureLineDialog(weld::Widget* pParent, Referenc
 IMPL_LINK_NOARG(SignSignatureLineDialog, loadImage, weld::Button&, void)
 {
     Reference<XComponentContext> xContext = 
comphelper::getProcessComponentContext();
-    Reference<XFilePicker3> xFilePicker
-        = FilePicker::createWithMode(xContext, 
TemplateDescription::FILEOPEN_PREVIEW);
+    sfx2::FileDialogHelper aHelper(TemplateDescription::FILEOPEN_PREVIEW, 
FileDialogFlags::NONE,
+                                   m_xDialog.get());
+    Reference<XFilePicker3> xFilePicker = aHelper.GetFilePicker();
     if (!xFilePicker->execute())
         return;
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to