]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/preferences_widgets.cpp
Sets EchoMode(QLineEdit::Password) for CONFIG_ITEM_PASSWORD
[vlc] / modules / gui / qt4 / components / preferences_widgets.cpp
index 7e6236ddb8e24fe779e3f2521d0948880fa79d34..5d2019411af21e0ba4eb04c793a77ec3e21f0c8b 100644 (file)
@@ -202,6 +202,7 @@ StringConfigControl::StringConfigControl( vlc_object_t *_p_this,
 {
     label = new QLabel( qtr(p_item->psz_text) );
     text = new QLineEdit( qfu(p_item->value.psz) );
+    if( pwd ) text->setEchoMode( QLineEdit::Password );
     finish();
 
     if( !l )