]> git.sesse.net Git - vlc/commitdiff
Qt: ConvertDialog: Don't enforce extension on raw dump
authorFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 11 Jun 2013 16:49:31 +0000 (18:49 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 11 Jun 2013 17:51:04 +0000 (19:51 +0200)
modules/gui/qt4/dialogs/convert.cpp

index 420c62209ef6f9cc55c21dba2fc33e308a02aa57..415aa6316cd29235ff45add4befaff1fd375b743 100644 (file)
@@ -112,7 +112,7 @@ ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf,
 
 void ConvertDialog::fileBrowse()
 {
-    QString fileExtension = "." + profile->getMux();
+    QString fileExtension = ( ! profile->isEnabled() ) ? ".*" : "." + profile->getMux();
 
     QString fileName = QFileDialog::getSaveFileName( this, qtr( "Save file..." ),
         "",
@@ -165,7 +165,7 @@ void ConvertDialog::dumpChecked( bool checked )
 
 void ConvertDialog::setDestinationFileExtension()
 {
-    if( !fileLine->text().isEmpty() )
+    if( !fileLine->text().isEmpty() && profile->isEnabled() )
     {
         QString newFileExtension = "." + profile->getMux();
         QString newFileName;