Commit 3e21c73f authored by Jean-Philippe André's avatar Jean-Philippe André

Lua: fix default value of drop-down lists

Fix #3370
parent 14707cba
......@@ -721,6 +721,8 @@ static int vlclua_widget_add_value( lua_State *L )
if( !p_widget->p_values )
{
p_widget->p_values = p_new_value;
if( p_widget->type == EXTENSION_WIDGET_DROPDOWN )
p_new_value->b_selected = true;
}
else
{
......
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