diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 4fe719131123..06bb5ad1c701 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -858,7 +858,6 @@ SwContentTree::SwContentTree(vcl::Window* pParent, SwNavigationPI* pDialog) , m_bViewHasChanged(false) , m_bIsKeySpace(false) { - SetSublistDontOpenWithDoubleClick(); SetHelpId(HID_NAVIGATOR_TREELIST); SetNodeDefaultImages(); @@ -2705,7 +2704,15 @@ void SwContentTree::MouseButtonDown( const MouseEvent& rMEvt ) if( !pEntry && rMEvt.IsLeft() && rMEvt.IsMod1() && (rMEvt.GetClicks() % 2) == 0) Control::MouseButtonDown( rMEvt ); else + { + if( pEntry && (rMEvt.GetClicks() % 2) == 0) + { + SwContent* pCnt = static_cast<SwContent*>(pEntry->GetUserData()); + const ContentTypeId nActType = pCnt->GetParent()->GetType(); + SetSublistDontOpenWithDoubleClick( nActType == ContentTypeId::OUTLINE ); + } SvTreeListBox::MouseButtonDown( rMEvt ); + } } // Update immediately |