From 87250a3a239df95196a4b91d27515c0ed94d69b4 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Thu, 14 Nov 2024 03:04:40 +0000 Subject: [PATCH] sync: from linuxdeepin/qt5integration Synchronize source files from linuxdeepin/qt5integration. Source-pull-request: https://github.com/linuxdeepin/qt5integration/pull/248 --- styleplugins/chameleon/chameleonstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styleplugins/chameleon/chameleonstyle.cpp b/styleplugins/chameleon/chameleonstyle.cpp index d0776a6..42aa0ca 100644 --- a/styleplugins/chameleon/chameleonstyle.cpp +++ b/styleplugins/chameleon/chameleonstyle.cpp @@ -3134,7 +3134,7 @@ ChameleonMovementAnimation *ChameleonStyle::drawMenuItemBackground(const QStyleO ChameleonMovementAnimation *animation = nullptr; - if (animationTargetWidget) { + if (DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::HasAnimations) && animationTargetWidget) { animation = animationTargetWidget->findChild("_d_menu_select_animation", Qt::FindDirectChildrenOnly); if (!animation) {