Commit 274ad59c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

qt: action manager: Don't disable renderer from UI

This works around #19009

(cherry picked from commit 3e76b9d1)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 715833ba
......@@ -255,7 +255,7 @@ void ActionsManager::renderer_event_item_added( vlc_renderer_discovery_t*,
}
void ActionsManager::renderer_event_item_removed(
vlc_renderer_discovery_t *p_rd, vlc_renderer_item_t *p_item )
vlc_renderer_discovery_t *, vlc_renderer_item_t *p_item )
{
foreach (QAction* action, VLCMenuBar::rendererMenu->actions())
{
......@@ -263,11 +263,6 @@ void ActionsManager::renderer_event_item_removed(
continue;
if (compareRenderers( action->data(), p_item ))
{
if( action->isChecked() )
{
intf_thread_t* p_intf = reinterpret_cast<intf_thread_t*>( p_rd->owner.sys );
playlist_SetRenderer( THEPL, NULL );
}
VLCMenuBar::rendererMenu->removeAction( action );
VLCMenuBar::rendererGroup->removeAction( action );
vlc_renderer_item_release( p_item );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment