summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2013-12-13 09:41:42 +0100
committerJan Holesovsky <kendy@collabora.com>2013-12-13 13:03:47 +0100
commita18d38c7900528082d197a93bc9517223f4c4288 (patch)
treeafc3ac6d10e549cafc3ff7c68eb9976198fc330a /sfx2
parent19b2d2e8699113841006a6dac59ad32301766164 (diff)
fdo#72650: Get thumbnails only from the local documents.
No point in connecting to eg. ftp to get a thumbnail ;-) Change-Id: I017c59196c294242366f2254eeacd9056455c1bc
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/recentdocsviewitem.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx
index 3062da67d29d..570e782ad57b 100644
--- a/sfx2/source/control/recentdocsviewitem.cxx
+++ b/sfx2/source/control/recentdocsviewitem.cxx
@@ -27,8 +27,11 @@ RecentDocsViewItem::RecentDocsViewItem(ThumbnailView &rView, const OUString &rUR
if (aTitle.isEmpty())
aTitle = aURLObj.GetName(INetURLObject::DECODE_WITH_CHARSET);
- BitmapEx aThumbnail = ThumbnailView::readThumbnail(rURL);
- if( aThumbnail.IsEmpty() )
+ BitmapEx aThumbnail;
+ if (aURLObj.GetProtocol() == INET_PROT_FILE)
+ aThumbnail = ThumbnailView::readThumbnail(rURL);
+
+ if (aThumbnail.IsEmpty())
{
// Use the default thumbnail if we have nothing else
BitmapEx aExt(RecentDocsView::getDefaultThumbnail(rURL));