Commit e3e58c86 authored by Jean-Philippe Andre's avatar Jean-Philippe Andre Committed by Jean-Baptiste Kempf

Qt menus: show 'Select skin' in the skins2 popup menu

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 34302f82
...@@ -850,6 +850,25 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show ) ...@@ -850,6 +850,25 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
action->setCheckable( true ); action->setCheckable( true );
action->setChecked( mi->isFullScreen() ); action->setChecked( mi->isFullScreen() );
} }
else /* We are using the skins interface.
If not, this entry will not show. */
{
objects.clear();
varnames.clear();
vlc_object_t *p_object = ( vlc_object_t* )
vlc_object_find( p_intf, VLC_OBJECT_INTF, FIND_PARENT );
if( p_object )
{
objects.push_back( p_object->i_object_id );
varnames.push_back( "intf-skins" );
Populate( p_intf, submenu, varnames, objects );
vlc_object_release( p_object );
}
else
{
msg_Dbg( p_intf, "could not find parent interface" );
}
}
menu->addMenu( submenu ); menu->addMenu( submenu );
} }
......
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