summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-07-13 14:03:44 +0200
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-07-13 15:57:07 +0200
commit44df15bc7e5ea8e5bff2a4e45d9e8317ba0a362b (patch)
tree0d17a573ef917fdaa44a5e517a9547f745cf7780 /sfx2/source
parent58aac6e941c0a84e568c14e2aa276c867f725dff (diff)
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.mehrbrodt@allotropia.de> Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/appl/opengrf.cxx1
-rw-r--r--sfx2/source/dialog/filedlghelper.cxx2
2 files changed, 2 insertions, 1 deletions
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
{