diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-01-10 17:12:46 +0100 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-01-10 17:18:20 +0100 |
commit | 340e70e248824a3a4959fa1dee90c5650f257ae8 (patch) | |
tree | f4347766baa6b4a6f2b70868c6c77c28f2f4aeec /sfx2 | |
parent | 9f9c2bb4d5907be5726f50cfd5dfa8ae1d251dcf (diff) |
fdo#72947 Startcenter: handle file urls and non-file urls on a different way
Thanks Stephan Bergmann for the idea.
Change-Id: Ifdde1b7eaaefd30a176c47385bc9bfec48d5b86c
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/recentdocsviewitem.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx index d7416750a0d4..d1947e9a0b96 100644 --- a/sfx2/source/control/recentdocsviewitem.cxx +++ b/sfx2/source/control/recentdocsviewitem.cxx @@ -21,7 +21,12 @@ RecentDocsViewItem::RecentDocsViewItem(ThumbnailView &rView, const OUString &rUR { OUString aTitle(rTitle); INetURLObject aURLObj(rURL); - m_sHelpText = aURLObj.GetURLPath(); + + if( aURLObj.GetProtocol() == INET_PROT_FILE ) + m_sHelpText = aURLObj.getFSysPath(INetURLObject::FSYS_DETECT); + if( m_sHelpText.isEmpty() ) + m_sHelpText = aURLObj.GetURLNoPass(); + RecentDocsView& rRecentView = dynamic_cast<RecentDocsView&>(rView); long nThumbnailSize = rRecentView.GetThumbnailSize(); |