Commit cafb4269 authored by Ilkka Ollakka's avatar Ilkka Ollakka

qt4: fix preferences, set empy as default only if setting is empty

parent f01fe561
...@@ -519,6 +519,7 @@ void StringListConfigControl::finish(module_config_t *p_module_config, bool byca ...@@ -519,6 +519,7 @@ void StringListConfigControl::finish(module_config_t *p_module_config, bool byca
if( !p_module_config->ppsz_list[i_index] ) if( !p_module_config->ppsz_list[i_index] )
{ {
combo->addItem( "", QVariant("")); combo->addItem( "", QVariant(""));
if( !p_item->value.psz )
combo->setCurrentIndex( combo->count() - 1 ); combo->setCurrentIndex( combo->count() - 1 );
continue; continue;
} }
......
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