ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf,
const QStringList& inputMRLs )
- : QVLCDialog( parent, _p_intf )
+ : QVLCDialog( parent, _p_intf ),
+ singleFileSelected( inputMRLs.length() == 1 )
{
setWindowTitle( qtr( "Convert" ) );
setWindowRole( "vlc-convert" );
SoutInputBox *inputBox = new SoutInputBox( this );
incomingMRLs = &inputMRLs;
- singleFileSelected = (inputMRLs.length() == 1);
-
if(singleFileSelected)
{
inputBox->setMRL( inputMRLs[0] );
}
// If we have multiple files (i.e. we have an appenBox) and it's checked
- if(!singleFileSelected && appendBox->isChecked())
+ if( appendBox->isChecked() )
{
newFileName = newFileName.append("-converted");
}
VLCProfileSelector *profile;
const QStringList *incomingMRLs;
- bool singleFileSelected;
+ const bool singleFileSelected;
QStringList mrls;
private slots: