From 4ae85ae441ea683cbc67fdc1d2bdfcf66fa00bc3 Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Wed, 13 Jul 2022 14:46:30 +0200 Subject: [PATCH] QSystemTrayIcon: remove unused deprecated call to QAction::associatedWidgets() This call was added in bcaff2b06fc46fce8a3ae6d613c025c8d097229c but does not seem to be necessary. So just remove it. Task-number: QTBUG-104857 Pick-to: 6.4 6.3 6.2 Change-Id: I2068bd10c6de211dd31f09ff978e8b8ba9cb70db Reviewed-by: Marc Mutz --- src/widgets/util/qsystemtrayicon.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/widgets/util/qsystemtrayicon.cpp b/src/widgets/util/qsystemtrayicon.cpp index 25781b999a..d264cfe632 100644 --- a/src/widgets/util/qsystemtrayicon.cpp +++ b/src/widgets/util/qsystemtrayicon.cpp @@ -701,7 +701,6 @@ void QSystemTrayIconPrivate::addPlatformMenu(QMenu *menu) const // be higher than 3 levels. const auto actions = menu->actions(); for (QAction *action : actions) { - QList associatedWidgets = action->associatedWidgets(); if (action->menu()) addPlatformMenu(action->menu()); }