From 409cd9a35458cab71da4c1881f15232c8510ec7e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 22 Feb 2021 19:38:56 +0000 Subject: allow fading in/out to happen while a menu is open MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don't see an ill effects and this is happening already in the non-vcl menu case so drop the vcl-only case guard Change-Id: I6e0c7f645f9e1d2ba79215c0458659cd2a610ef2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111357 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- sw/source/uibase/docvw/HeaderFooterWin.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'sw') diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx index 0c4ed113f6c7..2232c7b8d4cd 100644 --- a/sw/source/uibase/docvw/HeaderFooterWin.cxx +++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include @@ -274,14 +273,11 @@ void SwHeaderFooterWin::ShowAll(bool bShow) m_xMenuButton->set_visible(!bIsEmptyHeaderFooter); m_xPushButton->set_visible(bIsEmptyHeaderFooter); - if (!PopupMenu::IsInExecute()) - { - m_bIsAppearing = bShow; + m_bIsAppearing = bShow; - if (m_aFadeTimer.IsActive()) - m_aFadeTimer.Stop(); - m_aFadeTimer.Start(); - } + if (m_aFadeTimer.IsActive()) + m_aFadeTimer.Stop(); + m_aFadeTimer.Start(); } bool SwHeaderFooterWin::Contains( const Point &rDocPt ) const -- cgit