[vlc-commits] commit: Lua: fix default value of drop-down lists ( Jean-Philippe André )
git at videolan.org
git at videolan.org
Sat Mar 20 18:58:59 CET 2010
vlc | branch: master | Jean-Philippe André <jpeg at videolan.org> | Sat Mar 20 18:57:57 2010 +0100| [3e21c73fa82800229531c44f2a27141e560b8017] | committer: Jean-Philippe André
Lua: fix default value of drop-down lists
Fix #3370
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3e21c73fa82800229531c44f2a27141e560b8017
---
modules/misc/lua/libs/dialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/misc/lua/libs/dialog.c b/modules/misc/lua/libs/dialog.c
index 66f30a9..7dbfbfc 100644
--- a/modules/misc/lua/libs/dialog.c
+++ b/modules/misc/lua/libs/dialog.c
@@ -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
{
More information about the vlc-commits
mailing list