summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2022-05-24 16:57:04 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2022-05-24 20:37:52 +0200
commit4ec4dd04b1a0f2313edfeff3cb7818ee560c99c3 (patch)
treed2442ca45dbd67e264ad94675b9921faa37106d4 /sfx2
parent027d937ac3baa357511f9974d958ef2002c7f60a (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>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/sfxpicklist.cxx2
1 files changed, 1 insertions, 1 deletions
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,