Kaydet (Commit) 3fa31e22 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

removed deprecated FileDialogHelper::SetDisplayDirectory

and convert usage of it

Change-Id: I2e3a71ec94492e5482bdf720d256e67adaf3f095
Reviewed-on: https://gerrit.libreoffice.org/26951Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst e9bded5b
......@@ -196,13 +196,15 @@ void SvxHyperlinkDocTp::SetInitFocus()
IMPL_LINK_NOARG_TYPED(SvxHyperlinkDocTp, ClickFileopenHdl_Impl, Button*, void)
{
// Open Fileopen-Dialog
::sfx2::FileDialogHelper aDlg(
sfx2::FileDialogHelper aDlg(
css::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, FileDialogFlags::NONE,
GetParent() );
OUString aOldURL( GetCurrentURL() );
if( aOldURL.startsWithIgnoreAsciiCase( sFileScheme ) )
{
aDlg.SetDisplayDirectory( aOldURL );
OUString aPath;
osl::FileBase::getSystemPathFromFileURL(aOldURL, aPath);
aDlg.SetDisplayFolder( aPath );
}
DisableClose( true );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment