[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
Mon May 31 07:06:15 CEST 2010
vlc/vlc-1.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat May 15 19:17:08 2010 +0300| [fd449f34758b860290cb4b2c07e1d6bd4ea8a2e4] | committer: Ilkka Ollakka
qt4: set empty choice as default in preferences if there is one
(cherry picked from commit 902605baeaab7e80eab202d132af559ef4df6be2)
Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=fd449f34758b860290cb4b2c07e1d6bd4ea8a2e4
---
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