From de4c18bacaf75f378da829c2114a67f4007d7a22 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 27 Apr 2012 11:08:37 +0200 Subject: Related fdo#37775: Update Recent Documents for r/o docs, too ...not sure why this explicit check was there at all. Before the fix for fdo#37775, the check was not an issue, as docs were only added to Recent Documents upon saving them, anyway. --- sfx2/source/appl/sfxpicklist.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx index 119873279b95..b3c48f2c622f 100644 --- a/sfx2/source/appl/sfxpicklist.cxx +++ b/sfx2/source/appl/sfxpicklist.cxx @@ -180,8 +180,7 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh ) if ( aURL.GetProtocol() == INET_PROT_VND_SUN_STAR_HELP ) return; - // only add r/w document into picklist - if ( pDocSh->IsReadOnly() || !pMed->IsUpdatePickList() ) + if ( !pMed->IsUpdatePickList() ) return; // add no document that forbids this (for example Message-Body) -- cgit v1.2.3