Master Document toggle missing if switch to master doc from normal doc

regression since...

commit 20e2d7e7d1
Author: akki95 <akshaydeepiitr@gmail.com>
Date:   Sat Jan 30 09:55:41 2016 +0530

    tdf#95408 -"Toggle" in Writer Navigator to be more explicit in what it toggles

Change-Id: I310eb7bfc39993ba54bbd9eca04ce721c8a68ea6
This commit is contained in:
Caolán McNamara 2016-10-11 15:30:15 +01:00
parent 33603a582b
commit 045367d9ba

View file

@ -840,7 +840,7 @@ void SwNavigationPI::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/,
SwWrtShell* pWrtShell = pActView->GetWrtShellPtr();
m_aContentTree->SetActiveShell(pWrtShell);
bool bGlobal = IsGlobalDoc();
m_aContentToolBox->EnableItem(m_aContentToolBox->GetItemId("toggle"), bGlobal);
m_aContentToolBox->ShowItem(m_aContentToolBox->GetItemId("toggle"), bGlobal);
if ((!bGlobal && IsGlobalMode()) || (!IsGlobalMode() && m_pConfig->IsGlobalActive()))
{
ToggleTree();