Kaydet (Commit) 8cf89c24 authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt Kaydeden (comit) Lionel Elie Mamane

fdo#83311 Fix infobar for documents with read-only property

Change-Id: Ic813ab3eb74a088b60b4dc3dcd56e7b19683190c
Reviewed-on: https://gerrit.libreoffice.org/11220Reviewed-by: 's avatarLionel Elie Mamane <lionel@mamane.lu>
Tested-by: 's avatarLionel Elie Mamane <lionel@mamane.lu>
üst 314241ed
...@@ -403,6 +403,9 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) ...@@ -403,6 +403,9 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq )
pSh->SetModifyPasswordEntered(); pSh->SetModifyPasswordEntered();
} }
// Remove infobar if document was read-only (after password check)
RemoveInfoBar("readonly");
nOpenMode = pSh->IsOriginallyReadOnlyMedium() ? SFX_STREAM_READONLY : SFX_STREAM_READWRITE; nOpenMode = pSh->IsOriginallyReadOnlyMedium() ? SFX_STREAM_READONLY : SFX_STREAM_READWRITE;
// if only the view was in the readonly mode then there is no need to do the reload // if only the view was in the readonly mode then there is no need to do the reload
...@@ -416,7 +419,7 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) ...@@ -416,7 +419,7 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq )
return; return;
} }
RemoveInfoBar("readonly");
pSh->SetReadOnlyUI( false ); pSh->SetReadOnlyUI( false );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment