Commit fd449f34 authored by Ilkka Ollakka's avatar Ilkka Ollakka

qt4: set empty choice as default in preferences if there is one

(cherry picked from commit 902605baeaab7e80eab202d132af559ef4df6be2)
Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent 06233466
...@@ -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(""));
combo->setCurrentIndex( combo->count() - 1 );
continue; continue;
} }
combo->addItem( qfu((p_module_config->ppsz_list_text && 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