diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-23 17:15:04 +0000 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2017-03-07 16:24:39 +0000 |
commit | 82c4fc4909e3e3e8ab2b266820843aa6c5d52050 (patch) | |
tree | 653d5e76bd7893dc946e625164986afc50759ab9 | |
parent | 19bbc07e67d1a6b5c25a858a18994ee36770e79a (diff) |
Resolves: tdf#106159 right click + left click with comments in navigator
results in a disposed submenu in the menu, we need to flag with bSubPop4
that we have inserted the submenu into the parent menu to not dispose
it
Change-Id: I5b9711c0bba750c11d64dc175efd452f4bc8f4e5
(cherry picked from commit 58659cbaa8c955b135737bf9d77e4e57813310e5)
Reviewed-on: https://gerrit.libreoffice.org/34592
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index dd8a2bfbf50d..ed5cb8159904 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -1240,6 +1240,7 @@ VclPtr<PopupMenu> SwContentTree::CreateContextMenu() SwContentType* pType = static_cast<SwContentType*>(pEntry->GetUserData()); if ( (pType->GetType() == ContentTypeId::POSTIT) && (!m_pActiveShell->GetView().GetDocShell()->IsReadOnly()) && ( pType->GetMemberCount() > 0) ) { + bSubPop4 = true; pSubPop4->InsertItem(600, m_sPostItShow ); pSubPop4->InsertItem(601, m_sPostItHide ); pSubPop4->InsertItem(602, m_sPostItDelete ); |