tdf#167549 fix:Read Only option does not work
add FILEOPEN_READONLY_VERSION_FILTEROPTIONS Retained FILEOPEN_READONLY_VERSION just in case. Change-Id: Ie03ab09bfeea94682461ff0015432f1e1030f101 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207509 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
committed by
Ilmari Lauhakangas
parent
fb290d7c0c
commit
fb02e9d1fc
@@ -1503,7 +1503,7 @@ ErrCode FileDialogHelper_Impl::execute( css::uno::Sequence<OUString>& rpURLList,
|
||||
// set the read-only flag. When inserting a file, this flag is always set
|
||||
if ( mbInsert )
|
||||
rpSet->Put( SfxBoolItem( SID_DOC_READONLY, true ) );
|
||||
else if ( ( FILEOPEN_READONLY_VERSION == m_nDialogType ) && xCtrlAccess.is() )
|
||||
else if ( ( FILEOPEN_READONLY_VERSION == m_nDialogType || FILEOPEN_READONLY_VERSION_FILTEROPTIONS == m_nDialogType ) && xCtrlAccess.is() )
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user