Kaydet (Commit) c3c2ac6a authored tarafından Jim Raykowski's avatar Jim Raykowski Kaydeden (comit) Noel Grandin

tdf#115691 Keep focus in effects list after preview

Fixes gtk2 and gtk3 builds not keeping focus in effects list when
sidebar is undocked.

Change-Id: Iab2038bbf1ef2c1e6e1707f59776672d1b07404f
Reviewed-on: https://gerrit.libreoffice.org/65618
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 5bdffc57
...@@ -2092,8 +2092,6 @@ IMPL_LINK_NOARG(CustomAnimationPane, AnimationSelectHdl, ListBox&, void) ...@@ -2092,8 +2092,6 @@ IMPL_LINK_NOARG(CustomAnimationPane, AnimationSelectHdl, ListBox&, void)
if ( !pPreset && ( ePathKind == PathKind::NONE ) ) if ( !pPreset && ( ePathKind == PathKind::NONE ) )
return; return;
VclPtr<vcl::Window> xSaveFocusId = Window::SaveFocus();
if ( ePathKind != PathKind::NONE ) if ( ePathKind != PathKind::NONE )
{ {
std::vector< Any > aTargets; std::vector< Any > aTargets;
...@@ -2114,7 +2112,6 @@ IMPL_LINK_NOARG(CustomAnimationPane, AnimationSelectHdl, ListBox&, void) ...@@ -2114,7 +2112,6 @@ IMPL_LINK_NOARG(CustomAnimationPane, AnimationSelectHdl, ListBox&, void)
createPath( ePathKind, aTargets, 0.0 ); createPath( ePathKind, aTargets, 0.0 );
updateMotionPathTags(); updateMotionPathTags();
Window::EndSaveFocus(xSaveFocusId);
return; return;
} }
...@@ -2143,7 +2140,6 @@ IMPL_LINK_NOARG(CustomAnimationPane, AnimationSelectHdl, ListBox&, void) ...@@ -2143,7 +2140,6 @@ IMPL_LINK_NOARG(CustomAnimationPane, AnimationSelectHdl, ListBox&, void)
} }
onPreview(false); onPreview(false);
Window::EndSaveFocus(xSaveFocusId);
} }
} }
......
...@@ -1090,7 +1090,7 @@ void SlideShow::StartInPlacePresentation() ...@@ -1090,7 +1090,7 @@ void SlideShow::StartInPlacePresentation()
end(); end();
else else
{ {
if(mpCurrentViewShellBase) if( mpCurrentViewShellBase && ( !mxCurrentSettings.get() || ( mxCurrentSettings.get() && !mxCurrentSettings->mbPreview ) ) )
mpCurrentViewShellBase->GetWindow()->GrabFocus(); mpCurrentViewShellBase->GetWindow()->GrabFocus();
} }
} }
......
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