sfx2/source/appl/opengrf.cxx | 1 + sfx2/source/dialog/filedlghelper.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
New commits: commit 44df15bc7e5ea8e5bff2a4e45d9e8317ba0a362b Author: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> AuthorDate: Tue Jul 13 14:03:44 2021 +0200 Commit: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> CommitDate: Tue Jul 13 15:57:07 2021 +0200 Related tdf#126665 Fix image select dialog Use proper default (work dir, not internal gallery folder) Change-Id: I3a7a3558274ea066219e2c9f362890d2ab12212e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118838 Tested-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> diff --git a/sfx2/source/appl/opengrf.cxx b/sfx2/source/appl/opengrf.cxx index 71e46fd3181b..59bf0e13c261 100644 --- a/sfx2/source/appl/opengrf.cxx +++ b/sfx2/source/appl/opengrf.cxx @@ -84,6 +84,7 @@ SvxOpenGraphicDialog::SvxOpenGraphicDialog(const OUString& rTitle, weld::Window* : mpImpl(new SvxOpenGrf_Impl(pPreferredParent, ui::dialogs::TemplateDescription::FILEOPEN_LINK_PREVIEW)) { mpImpl->aFileDlg.SetTitle(rTitle); + mpImpl->aFileDlg.SetContext(sfx2::FileDialogHelper::InsertImage); } SvxOpenGraphicDialog::SvxOpenGraphicDialog(const OUString& rTitle, weld::Window* pPreferredParent, diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index abbdc48ae73d..bdee75776901 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -2229,7 +2229,7 @@ void FileDialogHelper_Impl::loadConfig() } if ( maPath.isEmpty() ) - displayFolder( SvtPathOptions().GetGraphicPath() ); + displayFolder( SvtPathOptions().GetWorkPath() ); } else { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits