summaryrefslogtreecommitdiff
path: root/sfx2/source/view/viewfrm.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-09-01 10:41:00 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-09-01 10:43:47 +0200
commit4e4ae20ab26937200d53caa15175e7847a790268 (patch)
treeabb48e2b545dfd7a596305582396951eb8acda5a /sfx2/source/view/viewfrm.cxx
parent024f334c48bc3d6cfac91ab7499f6b2863223c24 (diff)
Revert "fdo#83302 don't display read-only infobar for Base form in normal mode"
This reverts commit 542ae4e06f9f70e328a3e85f1272ead558b36766, which breaks the build without 15cea073e7ed4970e60967fe036fc492e2052203, which had to reverted.
Diffstat (limited to 'sfx2/source/view/viewfrm.cxx')
-rw-r--r--sfx2/source/view/viewfrm.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index c01974d4ef5c..40d4b67603b0 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1346,13 +1346,7 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
SfxBindings& rBind = GetBindings();
rBind.Invalidate( SID_RELOAD );
rBind.Invalidate( SID_EDITDOC );
- SfxViewShell *pVSh;
- FmFormShell *pFSh;
- if ( !xObjSh->IsReadOnly() ||
- ( xObjSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED &&
- (pVSh = xObjSh->GetViewShell()) &&
- (pFSh = pVSh->GetFormShell()) &&
- !pFSh->IsDesignMode()))
+ if ( !xObjSh->IsReadOnly() )
{
// In contrast to above (TITLE_CHANGED) does the UI not
// have to be updated because it was not obstructed