diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-05 14:41:30 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-11 07:31:26 +0000 |
commit | 3fa31e224881f3ba277639abd49f13f184f088a2 (patch) | |
tree | 9c0aa3c0a7d3c1140edc6304c94cc357de956041 /cui | |
parent | e9bded5b87b491c0a0d7a62512e9c0923a08ce28 (diff) |
removed deprecated FileDialogHelper::SetDisplayDirectory
and convert usage of it
Change-Id: I2e3a71ec94492e5482bdf720d256e67adaf3f095
Reviewed-on: https://gerrit.libreoffice.org/26951
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/hldoctp.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx index 4d1665f84f57..680d1dc29697 100644 --- a/cui/source/dialogs/hldoctp.cxx +++ b/cui/source/dialogs/hldoctp.cxx @@ -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 ); |