summaryrefslogtreecommitdiff
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 14:14:43 +0200
commite935a98fd40aecb5b24da2eeb3c61ba19a3c6a87 (patch)
treec4a8db5e5caf9ab3db309d68ee92e0a7caa7c63c
parent64a1e1220f359b1848e5336c7b045c8b1cec19fb (diff)
Related tdf#tdf#126665 Fix image select dialog
Use proper default (work dir, not internal gallery folder) Change-Id: I3a7a3558274ea066219e2c9f362890d2ab12212e
-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 39c082473866..50d6503fa2fe 100644
--- a/sfx2/source/dialog/filedlghelper.cxx
+++ b/sfx2/source/dialog/filedlghelper.cxx
@@ -2204,7 +2204,7 @@ void FileDialogHelper_Impl::loadConfig()
}
if ( maPath.isEmpty() )
- displayFolder( SvtPathOptions().GetGraphicPath() );
+ displayFolder( SvtPathOptions().GetWorkPath() );
}
else
{