diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2014-08-31 21:48:12 +0200 |
---|---|---|
committer | Bosdonnat Cedric <cedric.bosdonnat@free.fr> | 2014-09-01 02:49:17 -0500 |
commit | 542ae4e06f9f70e328a3e85f1272ead558b36766 (patch) | |
tree | 6e4b03d550ec2ae6f5773b73a18eb6141a338463 | |
parent | 8cf89c24906c6d50a3c15f1ebef4df071ad6ec79 (diff) |
fdo#83302 don't display read-only infobar for Base form in normal mode
Change-Id: I6faae7f5b1b2ec243c53453a8627bd0a540a46ad
Reviewed-on: https://gerrit.libreoffice.org/11219
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 40d4b67603b0..c01974d4ef5c 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -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 |