[vlc-commits] [Git][videolan/vlc][master] qt: delete system subtray menus

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sun Jun 12 16:27:34 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
0b79a6d2 by Tejesh Anand at 2022-06-12T15:57:54+00:00
qt: delete system subtray menus

- - - - -


1 changed file:

- modules/gui/qt/menus/menus.cpp


Changes:

=====================================
modules/gui/qt/menus/menus.cpp
=====================================
@@ -862,6 +862,12 @@ void VLCMenuBar::updateSystrayMenu( MainCtx *mi,
 {
     /* Get the systray menu and clean it */
     QMenu *sysMenu = mi->getSysTrayMenu();
+    // explictly delete submenus, see QTBUG-11070
+    for (QAction *action : sysMenu->actions()) {
+        if (action->menu()) {
+            delete action->menu();
+        }
+    }
     sysMenu->clear();
 
 #ifndef Q_OS_MAC



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0b79a6d2e02b6256aac674e6a3992b3d463528c6

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0b79a6d2e02b6256aac674e6a3992b3d463528c6
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list