diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-06 21:22:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-07 10:00:33 +0100 |
commit | 471c7d43a4ccdd6debd919cdf9a67f403ace110c (patch) | |
tree | 6d3808d58c45a40747ad2874ba2260837d657ccd /sfx2 | |
parent | c641ca15f2a898b7ec66cf39ef4517a1221bab81 (diff) |
improve scope
Change-Id: I69e4e47dbc17f32dacda336f31acad7fff992088
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131089
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/workwin.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx index ca0e55d5cdb8..4874db7ee5f6 100644 --- a/sfx2/source/appl/workwin.cxx +++ b/sfx2/source/appl/workwin.cxx @@ -992,7 +992,6 @@ void SfxWorkWindow::ShowChildren_Impl() if ( SfxChildVisibility::VISIBLE == (pCli->nVisible & SfxChildVisibility::VISIBLE) && bVisible ) { - ShowFlags nFlags = pCli->bSetFocus ? ShowFlags::NONE : ShowFlags::NoFocusChange | ShowFlags::NoActivate; if (pCli->xController) { if (!pCli->xController->getDialog()->get_visible()) @@ -1007,7 +1006,10 @@ void SfxWorkWindow::ShowChildren_Impl() } } else + { + ShowFlags nFlags = pCli->bSetFocus ? ShowFlags::NONE : ShowFlags::NoFocusChange | ShowFlags::NoActivate; pCli->pWin->Show(true, nFlags); + } pCli->bSetFocus = false; } else |