]> git.sesse.net Git - vlc/commitdiff
qt4: fix preferences, set empy as default only if setting is empty
authorIlkka Ollakka <ileoo@videolan.org>
Sat, 15 May 2010 17:50:13 +0000 (20:50 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Sat, 15 May 2010 17:50:13 +0000 (20:50 +0300)
modules/gui/qt4/components/preferences_widgets.cpp

index 83602c0b595b55a30490061d1fe060f376cd27ba..e232f5df9ee5ae009ec6acf8f65412b362b41c48 100644 (file)
@@ -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 &&