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
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to