Kaydet (Commit) 542ae4e0 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane Kaydeden (comit) Bosdonnat Cedric

fdo#83302 don't display read-only infobar for Base form in normal mode

Change-Id: I6faae7f5b1b2ec243c53453a8627bd0a540a46ad
Reviewed-on: https://gerrit.libreoffice.org/11219Reviewed-by: 's avatarBosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: 's avatarBosdonnat Cedric <cedric.bosdonnat@free.fr>
üst 8cf89c24
......@@ -1346,7 +1346,13 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
SfxBindings& rBind = GetBindings();
rBind.Invalidate( SID_RELOAD );
rBind.Invalidate( SID_EDITDOC );
if ( !xObjSh->IsReadOnly() )
SfxViewShell *pVSh;
FmFormShell *pFSh;
if ( !xObjSh->IsReadOnly() ||
( xObjSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED &&
(pVSh = xObjSh->GetViewShell()) &&
(pFSh = pVSh->GetFormShell()) &&
!pFSh->IsDesignMode()))
{
// In contrast to above (TITLE_CHANGED) does the UI not
// have to be updated because it was not obstructed
......
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