[vlc-commits] commit: qt4: set empty choice as default in preferences if there is one ( Ilkka Ollakka )
git at videolan.org
git at videolan.org
Sat May 15 18:17:15 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat May 15 19:17:08 2010 +0300| [902605baeaab7e80eab202d132af559ef4df6be2] | committer: Ilkka Ollakka
qt4: set empty choice as default in preferences if there is one
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=902605baeaab7e80eab202d132af559ef4df6be2
---
modules/gui/qt4/components/preferences_widgets.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index eb36b32..83602c0 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -519,6 +519,7 @@ 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 );
continue;
}
combo->addItem( qfu((p_module_config->ppsz_list_text &&
More information about the vlc-commits
mailing list