diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-10-21 09:21:34 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-10-21 09:26:09 +0200 |
commit | dcdba6ed8984fd135a346a921b3a7888ecef9cb0 (patch) | |
tree | b271517a1acdade1199657a1fa760a6eae61be7f /sfx2 | |
parent | 9387cca95176889d171a63a46cb2d0f6d59b3d1b (diff) |
lok: Avoid adding to recent documents completely.
Change-Id: I292281e300e8976bf5ae286262a6a3e20de41858
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/sfxpicklist.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx index e96269de2bc1..b8969a1b5bbf 100644 --- a/sfx2/source/appl/sfxpicklist.cxx +++ b/sfx2/source/appl/sfxpicklist.cxx @@ -19,6 +19,7 @@ #include <config_features.h> +#include <comphelper/lok.hxx> #include <com/sun/star/document/XDocumentProperties.hpp> #include <unotools/historyoptions.hxx> #include <unotools/useroptions.hxx> @@ -161,7 +162,7 @@ SfxPickList::PickListEntry* SfxPickList::GetPickListEntry( sal_uInt32 nIndex ) void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh ) { - if (pDocSh->IsAvoidRecentDocs()) + if (pDocSh->IsAvoidRecentDocs() || comphelper::LibreOfficeKit::isActive()) return; SfxMedium *pMed = pDocSh->GetMedium(); @@ -196,10 +197,9 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh ) if ( pFilter ) aFilter = pFilter->GetFilterName(); - // generate a thumbnail boost::optional<OUString> aThumbnail; - // don't generate thumbnail when in headless mode, or on non-desktop (?) -#if HAVE_FEATURE_DESKTOP + + // generate the thumbnail if (!pDocSh->IsModified() && !Application::IsHeadlessModeEnabled()) { // not modified => the document matches what is in the shell @@ -227,7 +227,7 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh ) } } } -#endif + // add to svtool history options SvtHistoryOptions().AppendItem( ePICKLIST, aURL.GetURLNoPass( INetURLObject::NO_DECODE ), |