QGridLayout *layout = new QGridLayout( this );
- QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
+ QPushButton *closeButton = new QPushButton( qtr( "&Cancel" ) );
updateButton = new QPushButton( qtr( "&Update List" ) );
updateButton->setDefault( true );
QDialogButtonBox *buttonBox = new QDialogButtonBox( Qt::Horizontal );
}
else
{
- updateButton->setEnabled( false );
QString dest_dir = QFileDialog::getExistingDirectory( this,
qtr( "Select a directory..." ),
qfu( config_GetHomeDir() ) );
if( dest_dir != "" )
{
- /*HACK: Qt4 isn't able to change the way OS deals with diretories names.
- Windows doesn't add an ending separtor so we might add it. */
+ /*HACK: Qt4 isn't able to change the way OS deals with directories
+ names. Windows doesn't add an ending separator so we might add it.
+ */
#if defined( WIN32 ) || defined( UNDER_CE )
dest_dir += DIR_SEP;
#endif
toggleVisible();
update_Download( p_update, qtu( dest_dir ) );
}
- else
- updateButton->setEnabled( true );
}
}
update_release_t *p_release = update_GetRelease( p_update );
assert( p_release );
b_checked = true;
- updateButton->setText( "Download" );
+ updateButton->setText( "Ok" );
updateLabel->setText( qtr( "There is a new version of VLC :\n" )
+ qfu( p_release->psz_desc ) );