Commit 6675dc2e authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: capture panel: fix segfault on null value.

parent 82845085
......@@ -481,7 +481,7 @@ void setfillVLCConfigCombo( const char *configname, intf_thread_t *p_intf,
for( ssize_t i = 0; i < count; i++ )
{
combo->addItem( qtr(texts[i]), QVariant(qfu(values[i])) );
if( !strcmp(p_config->value.psz, values[i]) )
if( p_config->value.psz && !strcmp(p_config->value.psz, values[i]) )
combo->setCurrentIndex( i );
free( texts[i] );
free( values[i] );
......
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