sfx2/source/appl/sfxpicklist.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 4ec4dd04b1a0f2313edfeff3cb7818ee560c99c3 Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Tue May 24 16:57:04 2022 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Tue May 24 20:37:52 2022 +0200 tdf#149170 sfx2: store IsOriginallyLoadedReadOnly() for recent files This flag stores the user's intent. (regression from commit 404c51f3664ffd4f7e2c1c8bb8a12ac70954fec2) Change-Id: I825eaf1323b613e131d058cb9b9ab86363d5f694 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134880 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx index 8d929d1ad68b..22c364669e7e 100644 --- a/sfx2/source/appl/sfxpicklist.cxx +++ b/sfx2/source/appl/sfxpicklist.cxx @@ -123,7 +123,7 @@ void SfxPickListImpl::AddDocumentToPickList( const SfxObjectShell* pDocSh ) } } } - ::std::optional<bool> const oIsReadOnly(pDocSh->IsReadOnly()); + ::std::optional<bool> const oIsReadOnly(pMed->IsOriginallyLoadedReadOnly()); // add to svtool history options SvtHistoryOptions::AppendItem( EHistoryType::PickList,