summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/view2.cxx
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2020-12-22 22:20:45 -0900
committerJim Raykowski <raykowj@gmail.com>2021-01-14 00:10:44 +0100
commit9f9798f07f0b56ae474f31ded671cc8da598d244 (patch)
tree4ece056191029b06a6b6a123c106e60f3c9e7336 /sw/source/uibase/uiview/view2.cxx
parent1a24fef6b3e24645dccfa7f13dd71d8f5019dd94 (diff)
tdf#115817 Add navigation recency to Navigate By
- Adds Recency to Navigate By and when selected, previous and next scroll controls navigate the navigation manager stack backwards and forward. - Removes the code that makes the Navigation tool bar appear when an entry is added to the navigation manager stack so the tool bar doesn't appear unless the user explicilty chooses for it to. - Changes Navigation toolbar context sensitivity to false. Change-Id: I246dd442b4bc5191324c35f9b91a9cb2eac8e7f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108316 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sw/source/uibase/uiview/view2.cxx')
-rw-r--r--sw/source/uibase/uiview/view2.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index adeb5ed16e6a..248a75a3416b 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -1159,11 +1159,10 @@ void SwView::Execute(SfxRequest &rReq)
case FN_SCROLL_PREV:
case FN_SCROLL_NEXT:
{
- bool *pbNext = new bool(true); // FN_SCROLL_NEXT
+ bool *pbNext = new bool(true);
if (nSlot == FN_SCROLL_PREV)
*pbNext = false;
- // #i75416# move the execution of the search to an asynchronously called static link
- Application::PostUserEvent( LINK(this, SwView, MoveNavigationHdl), pbNext );
+ MoveNavigationHdl(pbNext);
}
break;
case SID_JUMPTOMARK: