summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-10-30 16:04:24 -0800
committerJim Raykowski <raykowj@gmail.com>2018-10-31 21:12:21 +0100
commit4f1903a08917804602040cd5f0652c2983db9e22 (patch)
treee7a549728f86f8d2d16029f5a5e74a614c829cb7 /sfx2
parent72ec2c80d78af0c7601718ed89bd6b1e380a6940 (diff)
tdf#119630 Fix lost focus in Sidebar menu
Focus to document after deck selection or customization from the sidebar menu. Change-Id: I315fecfe7bfaedf4c751b1c240e08b80daa77221 Reviewed-on: https://gerrit.libreoffice.org/62677 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index f39ed4e7d945..82f4eceebd28 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -1096,7 +1096,9 @@ IMPL_LINK(SidebarController, OnMenuItemSelected, Menu*, pMenu, bool)
mxFrame->getController());
// Notify the tab bar about the updated set of decks.
mpTabBar->SetDecks(aDecks);
+ mpTabBar->HighlightDeck(mpCurrentDeck->GetId());
}
+ mpParentWindow->GrabFocusToDocument();
}
catch (RuntimeException&)
{