| commit | 4ec4dd04b1a0f2313edfeff3cb7818ee560c99c3 | [log] |
|---|---|---|
| author | Michael Stahl <michael.stahl@allotropia.de> | Tue May 24 16:57:04 2022 +0200 |
| committer | Michael Stahl <michael.stahl@allotropia.de> | Tue May 24 20:37:52 2022 +0200 |
| tree | d2442ca45dbd67e264ad94675b9921faa37106d4 | |
| parent | 027d937ac3baa357511f9974d958ef2002c7f60a [diff] |
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.stahl@allotropia.de>
diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx index 8d929d1..22c3646 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,