Commit 3ab102eb authored by Ilkka Ollakka's avatar Ilkka Ollakka

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

(cherry picked from commit cafb4269)
Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent fd449f34
......@@ -519,7 +519,8 @@ void StringListConfigControl::finish(module_config_t *p_module_config, bool byca
if( !p_module_config->ppsz_list[i_index] )
{
combo->addItem( "", QVariant(""));
combo->setCurrentIndex( combo->count() - 1 );
if( !p_item->value.psz )
combo->setCurrentIndex( combo->count() - 1 );
continue;
}
combo->addItem( qfu((p_module_config->ppsz_list_text &&
......
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