Commit b9b3d4e0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: fix matching key config items

mux-ts-use-key-frames is not a key!
parent 7e44b4e1
......@@ -457,12 +457,12 @@ AdvPrefsPanel::AdvPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
boxlayout = new QGridLayout();
}
/* Only one hotkey control */
if( has_hotkey && p_item->i_type & CONFIG_ITEM && p_item->psz_name &&
strstr( p_item->psz_name, "key-" ) )
if( (p_item->i_type & CONFIG_ITEM) == CONFIG_ITEM_KEY )
{
if( has_hotkey )
continue;
if( p_item->i_type & CONFIG_ITEM && p_item->psz_name &&
strstr( p_item->psz_name, "key-" ) )
has_hotkey = true;
}
ConfigControl *control;
if( ! box )
......
......@@ -1295,11 +1295,11 @@ void KeySelectorControl::finish()
{
module_config_t *p_item = p_config + i;
/* If we are a key option not empty */
if( p_item->i_type & CONFIG_ITEM && p_item->psz_name
&& strstr( p_item->psz_name , "key-" )
&& !strstr( p_item->psz_name , "global-key" )
&& !EMPTY_STR( p_item->psz_text ) )
/* If we are a (non-global) key option not empty */
if( (p_item->i_type & CONFIG_ITEM == CONFIG_ITEM_KEY) &&
p_item->psz_name != NULL &&
strncmp( p_item->psz_name , "global-", 7 ) &&
!EMPTY_STR( p_item->psz_text ) )
{
/*
Each tree item has:
......
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