From 471c7d43a4ccdd6debd919cdf9a67f403ace110c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 6 Mar 2022 21:22:41 +0000 Subject: improve scope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I69e4e47dbc17f32dacda336f31acad7fff992088 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131089 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sfx2/source/appl/workwin.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sfx2') 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 -- cgit