From cb3168c7fce60f68a5be955924679037c5279b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 8 Mar 2009 00:12:26 +0200 Subject: [PATCH] Remove old login dialog code --- modules/gui/qt4/dialogs/interaction.cpp | 29 +------------------------ 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/modules/gui/qt4/dialogs/interaction.cpp b/modules/gui/qt4/dialogs/interaction.cpp index 7b9ab6dfc9..71b46a974f 100644 --- a/modules/gui/qt4/dialogs/interaction.cpp +++ b/modules/gui/qt4/dialogs/interaction.cpp @@ -72,28 +72,6 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf, i_ret = cancelBox.exec(); msg_Dbg( p_intf, "Warning %i %i", i_ret, cancelBox.result() ); } - else if( p_dialog->i_flags & DIALOG_LOGIN_PW_OK_CANCEL ) - { - dialog = new QWidget; layout = new QVBoxLayout( dialog ); - layout->setMargin( 2 ); - panel = new QWidget( dialog ); - QGridLayout *grid = new QGridLayout; - - description = new QLabel( qfu( p_dialog->psz_description ) ); - grid->addWidget( description, 0, 0, 1, 2 ); - - grid->addWidget( new QLabel( qtr( "Login") ), 1, 0 ); - loginEdit = new QLineEdit; - grid->addWidget( loginEdit, 1, 1 ); - - grid->addWidget( new QLabel( qtr("Password") ), 2, 0); - passwordEdit = new QLineEdit; - passwordEdit->setEchoMode( QLineEdit::Password ); - grid->addWidget( passwordEdit, 2, 1 ); - - panel->setLayout( grid ); - layout->addWidget( panel ); - } else if( (p_dialog->i_flags & DIALOG_INTF_PROGRESS ) || ( p_dialog->i_flags & DIALOG_USER_PROGRESS ) ) { @@ -223,12 +201,7 @@ void InteractionDialog::Finish( int i_ret ) vlc_mutex_lock( p_dialog->p_lock ); /* Special cases when we have to return psz to the core */ - if( p_dialog->i_flags & DIALOG_LOGIN_PW_OK_CANCEL ) - { - p_dialog->psz_returned[0] = strdup( qtu( loginEdit->text() ) ); - p_dialog->psz_returned[1] = strdup( qtu( passwordEdit->text() ) ); - } - else if( p_dialog->i_flags & DIALOG_PSZ_INPUT_OK_CANCEL ) + if( p_dialog->i_flags & DIALOG_PSZ_INPUT_OK_CANCEL ) { p_dialog->psz_returned[0] = strdup( qtu( inputEdit->text() ) ); } -- GitLab