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

qt4: remove tautology, constify singleFileSelected

parent 0e2d8cd6
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf, ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf,
const QStringList& inputMRLs ) const QStringList& inputMRLs )
: QVLCDialog( parent, _p_intf ) : QVLCDialog( parent, _p_intf ),
singleFileSelected( inputMRLs.length() == 1 )
{ {
setWindowTitle( qtr( "Convert" ) ); setWindowTitle( qtr( "Convert" ) );
setWindowRole( "vlc-convert" ); setWindowRole( "vlc-convert" );
...@@ -48,8 +49,6 @@ ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf, ...@@ -48,8 +49,6 @@ ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf,
SoutInputBox *inputBox = new SoutInputBox( this ); SoutInputBox *inputBox = new SoutInputBox( this );
incomingMRLs = &inputMRLs; incomingMRLs = &inputMRLs;
singleFileSelected = (inputMRLs.length() == 1);
if(singleFileSelected) if(singleFileSelected)
{ {
inputBox->setMRL( inputMRLs[0] ); inputBox->setMRL( inputMRLs[0] );
...@@ -220,7 +219,7 @@ void ConvertDialog::close() ...@@ -220,7 +219,7 @@ void ConvertDialog::close()
} }
// If we have multiple files (i.e. we have an appenBox) and it's checked // 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"); newFileName = newFileName.append("-converted");
} }
......
...@@ -50,7 +50,7 @@ private: ...@@ -50,7 +50,7 @@ private:
VLCProfileSelector *profile; VLCProfileSelector *profile;
const QStringList *incomingMRLs; const QStringList *incomingMRLs;
bool singleFileSelected; const bool singleFileSelected;
QStringList mrls; QStringList mrls;
private slots: 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