diff options
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 963ab9efe9db..7fa9c9fa5fb2 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -4679,16 +4679,17 @@ void SwContentTree::EditEntry(const weld::TreeIter& rEntry, EditEntryMode nMode) [[fallthrough]]; // execute FN_POSTIT assuring standard mode first } case ContentTypeId::POSTIT: - m_pActiveShell->GetView().GetPostItMgr()->AssureStdModeAtShell(); + { + auto& rView = m_pActiveShell->GetView(); + auto pPostItMgr = rView.GetPostItMgr(); + pPostItMgr->AssureStdModeAtShell(); + pPostItMgr->SetActiveSidebarWin(nullptr); + rView.GetEditWin().GrabFocus(); if(nMode == EditEntryMode::DELETE) - { - m_pActiveShell->GetView().GetPostItMgr()->SetActiveSidebarWin(nullptr); m_pActiveShell->DelRight(); - } else - { nSlot = FN_POSTIT; - } + } break; case ContentTypeId::INDEX: { |