[vlc-commits] qt: Don't connect the renderer group once per renderer

Hugo Beauzée-Luyssen git at videolan.org
Tue Feb 21 14:00:54 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Feb 16 17:26:48 2017 +0100| [7a53818da0e67ae6818068d18d9b650d612d5da6] | committer: Hugo Beauzée-Luyssen

qt: Don't connect the renderer group once per renderer

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

 modules/gui/qt/actions_manager.cpp | 2 --
 modules/gui/qt/menus.cpp           | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/gui/qt/actions_manager.cpp b/modules/gui/qt/actions_manager.cpp
index eff657f..0a43b52 100644
--- a/modules/gui/qt/actions_manager.cpp
+++ b/modules/gui/qt/actions_manager.cpp
@@ -288,8 +288,6 @@ void ActionsManager::renderer_event_received( const vlc_event_t * p_event, void
                 action->setChecked( true );
             free( psz_renderer );
         }
-
-        CONNECT( VLCMenuBar::rendererGroup, triggered(QAction*), ActionsManager::getInstance( p_intf ), RendererSelected( QAction* ) );
     }
 }
 
diff --git a/modules/gui/qt/menus.cpp b/modules/gui/qt/menus.cpp
index 8af0317..cd3ac08 100644
--- a/modules/gui/qt/menus.cpp
+++ b/modules/gui/qt/menus.cpp
@@ -1649,6 +1649,7 @@ QMenu *VLCMenuBar::RendererMenu( intf_thread_t *p_intf )
     submenu->addAction( action );
 
     CONNECT( action, triggered(bool), ActionsManager::getInstance( p_intf ), ScanRendererAction( bool ) );
+    CONNECT( rendererGroup, triggered(QAction*), ActionsManager::getInstance( p_intf ), RendererSelected( QAction* ) );
 
     return submenu;
 }



More information about the vlc-commits mailing list