[vlc-commits] qt: fix CheckableListMenu reset when using actions group

Pierre Lamot git at videolan.org
Thu Oct 29 09:08:35 CET 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Oct 14 16:32:28 2020 +0200| [76835d41b6b2dbf5493d1535a82b14cb9555c8ae] | committer: Pierre Lamot

qt: fix CheckableListMenu reset when using actions group

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=76835d41b6b2dbf5493d1535a82b14cb9555c8ae
---

 modules/gui/qt/menus/custom_menus.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/menus/custom_menus.cpp b/modules/gui/qt/menus/custom_menus.cpp
index 8f21defc71..5e431d1680 100644
--- a/modules/gui/qt/menus/custom_menus.cpp
+++ b/modules/gui/qt/menus/custom_menus.cpp
@@ -278,7 +278,7 @@ void CheckableListMenu::onModelAboutToBeReset()
     for (QAction* action  :actions())
     {
         if (m_actionGroup)
-            m_actionGroup->addAction(action);
+            m_actionGroup->removeAction(action);
         delete action;
     }
     setEnabled(false);



More information about the vlc-commits mailing list