Commit 575a20f3 authored by Tristan Matthews's avatar Tristan Matthews

qt4: remove tautology, constify singleFileSelected

parent 0e2d8cd6
......@@ -39,7 +39,8 @@
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" );
......@@ -48,8 +49,6 @@ ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf,
SoutInputBox *inputBox = new SoutInputBox( this );
incomingMRLs = &inputMRLs;
singleFileSelected = (inputMRLs.length() == 1);
if(singleFileSelected)
{
inputBox->setMRL( inputMRLs[0] );
......@@ -220,7 +219,7 @@ void ConvertDialog::close()
}
// 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");
}
......
......@@ -50,7 +50,7 @@ private:
VLCProfileSelector *profile;
const QStringList *incomingMRLs;
bool singleFileSelected;
const bool singleFileSelected;
QStringList mrls;
private slots:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment