summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/utlui')
-rw-r--r--sw/source/uibase/utlui/glbltree.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/utlui/glbltree.cxx b/sw/source/uibase/utlui/glbltree.cxx
index 8c8fef089161..5625be8cdc05 100644
--- a/sw/source/uibase/utlui/glbltree.cxx
+++ b/sw/source/uibase/utlui/glbltree.cxx
@@ -1151,12 +1151,11 @@ IMPL_LINK( SwGlobalTree, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg, vo
for (const std::unique_ptr<SfxMedium>& pMed : aMedList)
{
// tdf#127978 - don't URL encode filename for navigator's tooltip
- OUString sFileName
+ pFileNames[nPos++]
= pMed->GetURLObject().GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)
+ OUStringChar(sfx2::cTokenSeparator)
+ pMed->GetFilter()->GetFilterName()
+ OUStringChar(sfx2::cTokenSeparator);
- pFileNames[nPos++] = sFileName;
}
InsertRegion( &*m_oDocContent, aFileNames );
m_oDocContent.reset();