summaryrefslogtreecommitdiff
path: root/sfx2/source/control
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:01:29 +0100
commitb475a895c0b91a764d750146f9935e7c56ef7f42 (patch)
tree61d8eadccacbdf60bc98ba79bca61f318671c7bb /sfx2/source/control
parent4c8bfd06a62de467f52b088ca1c78dcd829f9b7e (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/source/control')
-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));