From 045367d9ba43ec6afb003fd9117ae186c7e18e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 11 Oct 2016 15:30:15 +0100 Subject: [PATCH] Master Document toggle missing if switch to master doc from normal doc regression since... commit 20e2d7e7d1c518fe514e8252836c1c728fe3fc27 Author: akki95 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 --- sw/source/uibase/utlui/navipi.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx index a6f293bc6008..5d5e021eace0 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -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();