diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-01-10 17:12:46 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-01-10 18:17:03 +0000 |
commit | 7ebac02b35700b7ca96e636d5729b65115c2c708 (patch) | |
tree | 27708cb35f0c8187bf4247756b11c61fc17c79f0 | |
parent | 6b0a9123ea2c7d616555c1d4808813a9f4478d48 (diff) |
fdo#72947 Startcenter: handle file urls and non-file urls on a different way
Thanks Stephan Bergmann for the idea.
Change-Id: Ifdde1b7eaaefd30a176c47385bc9bfec48d5b86c
(cherry picked from commit 340e70e248824a3a4959fa1dee90c5650f257ae8)
Reviewed-on: https://gerrit.libreoffice.org/7377
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
-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(); |