Commit 2db381f6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: ask for confirmation before overwriting files with sout

Both conversion and streaming output wizard are covered.
However, demuxdump is _not_ covered.
parent 4dfda7ce
...@@ -128,6 +128,7 @@ QString FileDestBox::getMRL( const QString& mux ) ...@@ -128,6 +128,7 @@ QString FileDestBox::getMRL( const QString& mux )
} }
} }
m.option( "dst", outputfile ); m.option( "dst", outputfile );
m.option( "no-overwrite" );
m.end(); m.end();
return m.getMrl(); return m.getMrl();
......
...@@ -140,7 +140,7 @@ void ConvertDialog::close() ...@@ -140,7 +140,7 @@ void ConvertDialog::close()
mrl += ":"; mrl += ":";
if( displayBox->isChecked() ) if( displayBox->isChecked() )
mrl += "duplicate{dst=display,dst="; mrl += "duplicate{dst=display,dst=";
mrl += "std{access=file,mux=" + profile->getMux() mrl += "std{access=file{no-overwrite},mux=" + profile->getMux()
+ ",dst='" + fileLine->text() + "'}"; + ",dst='" + fileLine->text() + "'}";
if( displayBox->isChecked() ) if( displayBox->isChecked() )
mrl += "}"; mrl += "}";
......
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