[vlc-commits] Qt: ConvertDialog: Don't enforce extension on raw dump

Francois Cartegnie git at videolan.org
Tue Jun 11 19:51:51 CEST 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jun 11 18:49:31 2013 +0200| [258973e8939ce9178f9ea8b2c53e2e6de13290c5] | committer: Francois Cartegnie

Qt: ConvertDialog: Don't enforce extension on raw dump

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=258973e8939ce9178f9ea8b2c53e2e6de13290c5
---

 modules/gui/qt4/dialogs/convert.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/dialogs/convert.cpp b/modules/gui/qt4/dialogs/convert.cpp
index 420c622..415aa63 100644
--- a/modules/gui/qt4/dialogs/convert.cpp
+++ b/modules/gui/qt4/dialogs/convert.cpp
@@ -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;



More information about the vlc-commits mailing list