Blame SOURCES/0222-lok-Avoid-adding-to-recent-documents-completely.patch

135360
From 03ea9bee49bbd6961677ab020695f8d2f7af9d4e Mon Sep 17 00:00:00 2001
135360
From: Jan Holesovsky <kendy@collabora.com>
135360
Date: Wed, 21 Oct 2015 09:21:34 +0200
135360
Subject: [PATCH 222/398] lok: Avoid adding to recent documents completely.
135360
135360
(cherry picked from commit dcdba6ed8984fd135a346a921b3a7888ecef9cb0)
135360
135360
Change-Id: I292281e300e8976bf5ae286262a6a3e20de41858
135360
---
135360
 sfx2/source/appl/sfxpicklist.cxx | 11 +++++++----
135360
 1 file changed, 7 insertions(+), 4 deletions(-)
135360
135360
diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx
135360
index 0f3196df45cc..24754ca01b74 100644
135360
--- a/sfx2/source/appl/sfxpicklist.cxx
135360
+++ b/sfx2/source/appl/sfxpicklist.cxx
135360
@@ -19,6 +19,7 @@
135360
 
135360
 #include <config_features.h>
135360
 
135360
+#include <comphelper/lok.hxx>
135360
 #include <com/sun/star/document/XDocumentProperties.hpp>
135360
 #include <unotools/historyoptions.hxx>
135360
 #include <unotools/useroptions.hxx>
135360
@@ -161,6 +162,9 @@ SfxPickList::PickListEntry* SfxPickList::GetPickListEntry( sal_uInt32 nIndex )
135360
 
135360
 void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh )
135360
 {
135360
+    if (comphelper::LibreOfficeKit::isActive())
135360
+        return;
135360
+
135360
     SfxMedium *pMed = pDocSh->GetMedium();
135360
     if( !pMed )
135360
         return;
135360
@@ -193,10 +197,9 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh )
135360
     if ( pFilter )
135360
         aFilter = pFilter->GetFilterName();
135360
 
135360
-    // generate a thumbnail
135360
     boost::optional<OUString> aThumbnail;
135360
-    // don't generate thumbnail when in headless mode, or on non-desktop (?)
135360
-#if HAVE_FEATURE_DESKTOP
135360
+
135360
+    // generate the thumbnail
135360
     if (!pDocSh->IsModified() && !Application::IsHeadlessModeEnabled())
135360
     {
135360
         // not modified => the document matches what is in the shell
135360
@@ -224,7 +227,7 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh )
135360
             }
135360
         }
135360
     }
135360
-#endif
135360
+
135360
     // add to svtool history options
135360
     SvtHistoryOptions().AppendItem( ePICKLIST,
135360
             aURL.GetURLNoPass( INetURLObject::NO_DECODE ),
135360
-- 
135360
2.12.0
135360