Kaydet (Commit) 5a557821 authored tarafından Jim Raykowski's avatar Jim Raykowski

Revert "tdf#49684 Don't focus on Navigator or Sidebar on show"

See tdf#122900 for unwanted behavior changed caused by this. 

This reverts commit 88cbc3ea.

Change-Id: I9451a4b1f059b40d33b66b06f23228fc64170d8d
Reviewed-on: https://gerrit.libreoffice.org/67853
Tested-by: Jenkins
Reviewed-by: 's avatarJim Raykowski <raykowj@gmail.com>
üst 8c28bc32
...@@ -43,7 +43,6 @@ SfxNavigatorWrapper::SfxNavigatorWrapper( vcl::Window* pParentWnd , ...@@ -43,7 +43,6 @@ SfxNavigatorWrapper::SfxNavigatorWrapper( vcl::Window* pParentWnd ,
static_cast<SfxDockingWindow*>( GetWindow() )->Initialize( pInfo ); static_cast<SfxDockingWindow*>( GetWindow() )->Initialize( pInfo );
SetHideNotDelete( true ); SetHideNotDelete( true );
Show( ShowFlags::NoFocusChange );
} }
SfxNavigator::SfxNavigator( SfxBindings* pBind , SfxNavigator::SfxNavigator( SfxBindings* pBind ,
......
...@@ -60,7 +60,7 @@ SidebarChildWindow::SidebarChildWindow (vcl::Window* pParentWindow, sal_uInt16 n ...@@ -60,7 +60,7 @@ SidebarChildWindow::SidebarChildWindow (vcl::Window* pParentWindow, sal_uInt16 n
} }
SetHideNotDelete(true); SetHideNotDelete(true);
GetWindow()->Show(true, ShowFlags::NoFocusChange); GetWindow()->Show();
} }
sal_Int32 SidebarChildWindow::GetDefaultWidth (vcl::Window const * pWindow) sal_Int32 SidebarChildWindow::GetDefaultWidth (vcl::Window const * pWindow)
......
...@@ -739,7 +739,10 @@ SwNavigationPI::SwNavigationPI(SfxBindings* _pBindings, ...@@ -739,7 +739,10 @@ SwNavigationPI::SwNavigationPI(SfxBindings* _pBindings,
pActView->GetWrtShellPtr()->IsGlblDocSaveLinks()); pActView->GetWrtShellPtr()->IsGlblDocSaveLinks());
if (m_pConfig->IsGlobalActive()) if (m_pConfig->IsGlobalActive())
ToggleTree(); ToggleTree();
m_aGlobalTree->GrabFocus();
} }
else
m_aContentTree->GrabFocus();
UsePage(); UsePage();
m_aPageChgIdle.SetInvokeHandler(LINK(this, SwNavigationPI, ChangePageHdl)); m_aPageChgIdle.SetInvokeHandler(LINK(this, SwNavigationPI, ChangePageHdl));
m_aPageChgIdle.SetPriority(TaskPriority::LOWEST); m_aPageChgIdle.SetPriority(TaskPriority::LOWEST);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment